fixed json field save issue #14689

This commit is contained in:
Abhimanyu Saharan 2024-02-21 15:29:05 +05:30 committed by Jeremy Stretch
parent f14eac58e4
commit d8fb5a819f

View File

@ -93,6 +93,8 @@ class JSONField(_JSONField):
"""
Custom wrapper around Django's built-in JSONField to avoid presenting "null" as the default text.
"""
empty_values = [None, '', ()]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if not self.help_text: