remove organization assignment logic in device and services modules

This commit is contained in:
2025-10-22 14:53:10 +03:30
parent 91e2a0bb0b
commit a2ff8b863e
3 changed files with 25 additions and 13 deletions

View File

@@ -1,7 +1,12 @@
from rest_framework.exceptions import APIException
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