change structure of permissions output
This commit is contained in:
@@ -4,6 +4,8 @@ from rest_framework import status
|
||||
|
||||
|
||||
class TokenBlackListedException(APIException):
|
||||
""" exception for blocked access tokens """
|
||||
|
||||
status_code = status.HTTP_401_UNAUTHORIZED
|
||||
default_detail = _('unauthorized')
|
||||
default_code = 'unauthorized'
|
||||
|
||||
Reference in New Issue
Block a user