diff --git a/python/nav/web/seeddb/page/service/edit.py b/python/nav/web/seeddb/page/service/edit.py index 146528691e..a52443525a 100644 --- a/python/nav/web/seeddb/page/service/edit.py +++ b/python/nav/web/seeddb/page/service/edit.py @@ -24,7 +24,6 @@ from nav.models.service import Service, ServiceProperty from nav.models.manage import Netbox -from nav.web.crispyforms import set_flat_form_attributes from nav.web.servicecheckers import get_description, load_checker_classes from nav.web.message import new_message, Messages from nav.web.seeddb.page.service import ServiceInfo @@ -45,8 +44,6 @@ def __init__(self, *args, **kwargs): widget=forms.Select(attrs={'class': 'select2'}), ) - self.attrs = set_flat_form_attributes() - @staticmethod def _build_checker_choices(): checkers = load_checker_classes() @@ -75,8 +72,6 @@ class ServiceForm(forms.Form): handler = forms.CharField(widget=forms.HiddenInput) netbox = forms.IntegerField(widget=forms.HiddenInput) - attrs = set_flat_form_attributes() - class ServicePropertyForm(forms.Form): """Form for editing service properties""" @@ -94,8 +89,6 @@ def __init__(self, *args, **kwargs): for arg, descr in opt_args: self.fields[arg] = forms.CharField(required=False, help_text=descr) - self.attrs = set_flat_form_attributes() - def service_edit(request, service_id=None): """Controller for editing services"""