mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
parent
e1e514251e
commit
b750d0dff2
@ -97,10 +97,11 @@ class JSONField(_JSONField):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if not self.help_text:
|
||||
self.help_text = _('Enter context data in <a href="https://json.org/">JSON</a> format.')
|
||||
|
||||
self.widget.attrs['placeholder'] = ''
|
||||
self.widget.attrs['class'] = 'font-monospace'
|
||||
if not self.help_text:
|
||||
self.help_text = _('Enter context data in <a href="https://json.org/">JSON</a> format.')
|
||||
|
||||
def prepare_value(self, value):
|
||||
if isinstance(value, InvalidJSONInput):
|
||||
|
Loading…
Reference in New Issue
Block a user