Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove empty calls to set_flat_form_attributes #3193

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading