mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 16:48:16 -06:00
parent
4629cda9ad
commit
b732294a35
@ -60,7 +60,7 @@ class ScriptVariable:
|
||||
if default:
|
||||
self.field_attrs['initial'] = default
|
||||
if required:
|
||||
self.field_attrs['required'] = True
|
||||
self.field_attrs['required'] = required
|
||||
if 'validators' not in self.field_attrs:
|
||||
self.field_attrs['validators'] = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user