add - limitation of organization by is_repeatable org_type

This commit is contained in:
2025-10-29 10:33:14 +03:30
parent 5b42e6a076
commit f285fe2b72
3 changed files with 149 additions and 1 deletions

View File

@@ -27,6 +27,14 @@ class OrganizationNationalUniqueIDException(APIException):
default_code = 'organization_unique_id_exist'
class OrganizationTypeRepeatableException(APIException):
""" if organization type is repeatable """
status_code = status.HTTP_403_FORBIDDEN
default_detail = _('این نوع سازمان قابلیت تکرار ندارد و از قبل وجود دارد') # noqa
default_code = 'organization_type_repeatable'
class UserExistException(APIException):
""" if user exist """