2025-08-16 14:22:00 +03:30
|
|
|
from rest_framework import status
|
2025-10-22 14:53:10 +03:30
|
|
|
from rest_framework.exceptions import APIException
|
2025-08-16 14:22:00 +03:30
|
|
|
|
|
|
|
|
|
|
|
|
|
class DeviceAlreadyAssigned(APIException):
|
|
|
|
|
status_code = status.HTTP_403_FORBIDDEN
|
|
|
|
|
default_detail = "این دستگاه قبلا به این کلاینت تخصیص داده شده است" # noqa
|
2025-10-22 14:53:10 +03:30
|
|
|
|
|
|
|
|
|
|
|
|
|
class OrganizationDeviceNotAssigned(APIException):
|
|
|
|
|
status_code = status.HTTP_403_FORBIDDEN
|
|
|
|
|
default_detail = "این سازمان دستگاه فعالی ندارد" # noqa
|