add - limitation of organization by is_repeatable org_type
This commit is contained in:
@@ -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 """
|
||||
|
||||
|
||||
Reference in New Issue
Block a user