device assignment bug-assignment information-bug of organizations list for assignment

This commit is contained in:
2025-08-16 14:22:00 +03:30
parent ebd3aee47f
commit 1d07501ecf
10 changed files with 120 additions and 25 deletions

View File

@@ -0,0 +1,7 @@
from rest_framework.exceptions import APIException
from rest_framework import status
class DeviceAlreadyAssigned(APIException):
status_code = status.HTTP_403_FORBIDDEN
default_detail = "این دستگاه قبلا به این کلاینت تخصیص داده شده است" # noqa