rvinzent / django-dynamic-models

Dynamic Django models allow users to define, edit, and populate their own database schema.
MIT License
154 stars 46 forks source link

fix on_delete (de)serialization to DB #35

Closed rvinzent closed 3 years ago

rvinzent commented 3 years ago

cc @adavoudi

I had to either drop support for earlier Django versions, or implement a fairly heavy compatibility layer. For some reason django.contrib.postgres.fields.JSONField doesn't implement from_db_value.

Figured it out.