abogushov / django-admin-json-editor

Adds json-editor for JSONField in Django Administration
MIT License
173 stars 61 forks source link

editor value updated after manually (via json) deleting entries or editing select fields #9

Closed mlevental closed 6 years ago

mlevental commented 6 years ago

After manually deleting entries or editing values for select fields the editor value was not updated. Consequently editor.getValue() returned the old value.

This commit should fix both issues by calling this.change(). A similar fix was successfully applied for the json-editor library, see more details here: https://github.com/jdorn/json-editor/pull/752. But it addressed only the issue with editing select field values.

abogushov commented 6 years ago

@mlevental thanks!