|
@@ -63,9 +63,18 @@ class ServiceTypeUpdateForm(forms.ModelForm):
|
|
|
|
|
|
class Meta:
|
|
|
model = ServiceType
|
|
|
- fields = ['status', 'ticket_status', 'id_metaservice', 'codename',
|
|
|
- 'description', 'requirements', 'price_type', 'link_agreement',
|
|
|
- 'is_global', 'is_visible']
|
|
|
+ fields = [
|
|
|
+ 'status',
|
|
|
+ 'ticket_status',
|
|
|
+ 'id_metaservice',
|
|
|
+ 'codename',
|
|
|
+ 'description',
|
|
|
+ 'requirements',
|
|
|
+ 'price_type',
|
|
|
+ 'link_agreement',
|
|
|
+ 'is_global',
|
|
|
+ 'is_visible'
|
|
|
+ ]
|
|
|
widgets = {
|
|
|
'status': forms.TextInput(attrs={'readonly': True}),
|
|
|
'ticket_status': forms.TextInput(attrs={'readonly': True}),
|
|
@@ -92,9 +101,14 @@ class ServiceTypeCreateForm(forms.ModelForm):
|
|
|
|
|
|
class Meta:
|
|
|
model = ServiceType
|
|
|
- fields = ['codename', 'requirements', 'price_type',
|
|
|
- 'description',
|
|
|
- 'is_global', 'is_visible', ]
|
|
|
+ fields = [
|
|
|
+ 'codename',
|
|
|
+ 'requirements',
|
|
|
+ 'price_type',
|
|
|
+ 'description',
|
|
|
+ 'is_global',
|
|
|
+ 'is_visible',
|
|
|
+ ]
|
|
|
|
|
|
widgets = {
|
|
|
|
|
@@ -138,12 +152,14 @@ class ServiceInformationCreateForm(forms.ModelForm):
|
|
|
class Meta:
|
|
|
model = Service
|
|
|
fields = "__all__"
|
|
|
- exclude = ["id",
|
|
|
- "is_global",
|
|
|
- "is_visible",
|
|
|
- "ticket_status",
|
|
|
- "id_metaservice",
|
|
|
- "resource_id"]
|
|
|
+ exclude = [
|
|
|
+ "id",
|
|
|
+ "is_global",
|
|
|
+ "is_visible",
|
|
|
+ "ticket_status",
|
|
|
+ "id_metaservice",
|
|
|
+ "resource_id"
|
|
|
+ ]
|
|
|
|
|
|
widgets = {
|
|
|
# 'servicetype_id': forms.CharField(max_length=255)
|
|
@@ -166,12 +182,14 @@ class PartnerInformationUpdateForm(forms.ModelForm):
|
|
|
class Meta:
|
|
|
model = Company
|
|
|
fields = "__all__"
|
|
|
- exclude = ["id", "ticket_status",
|
|
|
- "is_global",
|
|
|
- "is_visible",
|
|
|
- "id_metaservice",
|
|
|
- "status"
|
|
|
- ]
|
|
|
+ exclude = [
|
|
|
+ "id",
|
|
|
+ "ticket_status",
|
|
|
+ "is_global",
|
|
|
+ "is_visible",
|
|
|
+ "id_metaservice",
|
|
|
+ "status"
|
|
|
+ ]
|
|
|
widgets = {
|
|
|
'description': forms.Select(attrs={'class': 'form-select'}),
|
|
|
'repr_id': forms.Select(attrs={'class': 'form-select'}),
|
|
@@ -189,12 +207,14 @@ class PartnerInformationCreateForm(forms.ModelForm):
|
|
|
class Meta:
|
|
|
model = Company
|
|
|
fields = "__all__"
|
|
|
- exclude = ["id", "ticket_status",
|
|
|
- "is_global",
|
|
|
- "is_visible",
|
|
|
- "id_metaservice",
|
|
|
- "status"
|
|
|
- ]
|
|
|
+ exclude = [
|
|
|
+ "id",
|
|
|
+ "ticket_status",
|
|
|
+ "is_global",
|
|
|
+ "is_visible",
|
|
|
+ "id_metaservice",
|
|
|
+ "status"
|
|
|
+ ]
|
|
|
|
|
|
widgets = {
|
|
|
'description': forms.Select(attrs={'class': 'form-select'}),
|