mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 00:15:17 -06:00
13809 check json rendering for all fields
This commit is contained in:
parent
d414304168
commit
4e930a80ed
@ -532,8 +532,6 @@ class ConfigRevisionForm(BootstrapMixin, forms.ModelForm, metaclass=ConfigFormMe
|
|||||||
value = ', '.join(value)
|
value = ', '.join(value)
|
||||||
self.fields[param.name].initial = value
|
self.fields[param.name].initial = value
|
||||||
|
|
||||||
if param.name == 'CUSTOM_VALIDATORS':
|
|
||||||
# custom validators can be either dict or functions
|
|
||||||
try:
|
try:
|
||||||
json.dumps(value)
|
json.dumps(value)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user