Староверов Данила Андреевич hai 1 ano
pai
achega
e372c24f7c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      SharixAdmin/forms.py

+ 2 - 0
SharixAdmin/forms.py

@@ -67,6 +67,7 @@ class ServiceTariffCreateForm(forms.ModelForm):
 class ServiceTypeUpdateForm(forms.ModelForm):
     def __init__(self, *args, **kwargs):
         super(ServiceTypeUpdateForm, self).__init__(*args, **kwargs)
+    class Meta:
         model = ServiceType
         fields = ['status','ticket_status','id_metaservice','codename',
                   'description','requirements','price_type','link_agreement',
@@ -79,6 +80,7 @@ class ServiceTypeUpdateForm(forms.ModelForm):
 class ServiceTypeCreateForm(forms.ModelForm):
     def __init__(self, *args, **kwargs):
         super(ServiceTypeCreateForm, self).__init__(*args, **kwargs)
+    class Meta:
         model = ServiceType
         fields = '__all__'