jmrivas86 / django-json-widget

An alternative widget that makes it easy to edit the new Django's field JSONField (PostgreSQL specific model fields)
MIT License
433 stars 88 forks source link

JSONField not set to null after being set to empty #26

Open dgrant opened 5 years ago

dgrant commented 5 years ago

Description

To reproduce:

What happens: The field does not get changed, it is still set to the original non-empty json and no error is displayed.

What I expected to happen: I expected the field to get set to null/None or I expected to at least get an error that the update to the field failed.