Skip to content

Commit

Permalink
Remove empty calls to set_flat_form_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Nov 14, 2024
1 parent 838c81e commit 051fffb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions python/nav/web/ipdevinfo/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,3 @@ class BooleanSensorForm(forms.Form):
alert_type = forms.ChoiceField(
label='What to display in "on" state', choices=Sensor.ALERT_TYPE_CHOICES
)

attrs = set_flat_form_attributes()
2 changes: 0 additions & 2 deletions python/nav/web/seeddb/forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,6 @@ def __init__(self, *args, **kwargs):
initial['netboxes'] = [n.pk for n in kwargs['instance'].netboxes.all()]
forms.ModelForm.__init__(self, *args, **kwargs)

self.attrs = set_flat_form_attributes()

class Meta(object):
model = NetboxGroup
fields = '__all__'
Expand Down
2 changes: 0 additions & 2 deletions python/nav/web/seeddb/page/netbox/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ def __init__(self, *args, **kwargs):
self.fields['profiles'].widget.attrs.update({'class': 'select2'})
self.fields['groups'].widget.attrs.update({'class': 'select2'})

self.attrs = set_flat_form_attributes()

def create_instance_query(self, masters):
"""Creates query for virtual instance multiselect"""
# - Should not see other masters
Expand Down

0 comments on commit 051fffb

Please sign in to comment.