mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 03:27:21 -06:00
Fix test error
This commit is contained in:
parent
3c3cca8ec1
commit
56bb053146
@ -73,7 +73,7 @@ class ScriptVariable:
|
|||||||
"""
|
"""
|
||||||
form_field = self.form_field(**self.field_attrs)
|
form_field = self.form_field(**self.field_attrs)
|
||||||
if not isinstance(form_field.widget, forms.CheckboxInput):
|
if not isinstance(form_field.widget, forms.CheckboxInput):
|
||||||
if form_field.widget.attrs and form_field.widget.attrs['class']:
|
if form_field.widget.attrs and 'class' in form_field.widget.attrs.keys():
|
||||||
form_field.widget.attrs['class'] += ' form-control'
|
form_field.widget.attrs['class'] += ' form-control'
|
||||||
else:
|
else:
|
||||||
form_field.widget.attrs['class'] = 'form-control'
|
form_field.widget.attrs['class'] = 'form-control'
|
||||||
|
Loading…
Reference in New Issue
Block a user