13 lines
476 B
Python
13 lines
476 B
Python
from rest_framework import status
|
|
from rest_framework.exceptions import APIException
|
|
|
|
|
|
class DeviceAlreadyAssigned(APIException):
|
|
status_code = status.HTTP_403_FORBIDDEN
|
|
default_detail = "این دستگاه قبلا به این کلاینت تخصیص داده شده است" # noqa
|
|
|
|
|
|
class OrganizationDeviceNotAssigned(APIException):
|
|
status_code = status.HTTP_403_FORBIDDEN
|
|
default_detail = "این سازمان دستگاه فعالی ندارد" # noqa
|