Skip to content

Commit

Permalink
fixed json field save issue #14689
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 authored and jeremystretch committed Feb 21, 2024
1 parent f14eac5 commit d8fb5a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netbox/utilities/forms/fields/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d8fb5a8

Please sign in to comment.