mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
fixed json field save issue #14689
This commit is contained in:
parent
fd608d69ba
commit
a02572bb3b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user