add company code to organization serialzier & handle quota weight exception
This commit is contained in:
10
apps/product/exceptions.py
Normal file
10
apps/product/exceptions.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from rest_framework.exceptions import APIException
|
||||
from rest_framework import status
|
||||
|
||||
|
||||
class QuotaWeightException(APIException):
|
||||
""" if quota distributions weight is more """
|
||||
|
||||
status_code = status.HTTP_401_UNAUTHORIZED
|
||||
default_detail = ''
|
||||
default_code = 'unauthorized'
|
||||
Reference in New Issue
Block a user