Староверов Данила Андреевич 1 yıl önce
ebeveyn
işleme
e372c24f7c
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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__'