fix del contact from group and image for ticket

This commit is contained in:
javad committed 2026-09-13 20:11:59 +03:30
1 parent 5fc9a908c5
commit a18a68578f
7 files changed
+168 -9

No files matched your search

+7 -1
View File
@@ -181,7 +181,13 @@ class StaffContactForm(forms.Form):
last_name = forms.CharField(label="نام خانوادگی", max_length=100, required=False)
organization_name = forms.CharField(label="نام شرکت / سازمان", max_length=180, required=False)
stakeholder_type = forms.ChoiceField(label="نوع مخاطب", choices=CustomerProfile.StakeholderType.choices)
groups = forms.ModelMultipleChoiceField(label="عضویت در گروه‌ها", queryset=ContactGroup.objects.none(), required=True, help_text="حداقل یک گروه برای تعیین مالکیت واحدی مخاطب انتخاب کنید.")
groups = forms.ModelMultipleChoiceField(
label="عضویت در گروه‌ها",
queryset=ContactGroup.objects.none(),
required=True,
help_text="گروه‌های موردنظر را روشن یا خاموش کنید؛ حداقل یک گروه باید باقی بماند.",
widget=forms.CheckboxSelectMultiple(attrs={"data-contact-group-option": ""}),
)
province = forms.ChoiceField(label="استان", required=False)
city = forms.ChoiceField(label="شهر", required=False)