From d8fb5a819fb10a07916884652138db23c456d883 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Wed, 21 Feb 2024 15:29:05 +0530 Subject: [PATCH] fixed json field save issue #14689 --- netbox/utilities/forms/fields/fields.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/utilities/forms/fields/fields.py b/netbox/utilities/forms/fields/fields.py index 7a3e818f6..8d4863544 100644 --- a/netbox/utilities/forms/fields/fields.py +++ b/netbox/utilities/forms/fields/fields.py @@ -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: