We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c0252 commit 3f42336Copy full SHA for 3f42336
django_editorjs_fields/fields.py
@@ -67,6 +67,12 @@ class EditorJsTextField(EditorJsFieldMixin, FieldMixin):
67
def __init__(self, plugins=None, tools=None, **kwargs):
68
super().__init__(plugins, tools, **kwargs)
69
70
+ def clean(self, value, model_instance):
71
+ if value == 'null':
72
+ value = None
73
+
74
+ return super().clean(value, model_instance)
75
76
77
class EditorJsJSONField(EditorJsFieldMixin, JSONField if HAS_JSONFIELD else FieldMixin):
78
# pylint: disable=useless-super-delegation
0 commit comments