remove organization assignment logic in device and services modules
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user