refactor(access): Use exceptions for permission flow as required
ref: #442 #456
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
from django.core.exceptions import (
|
||||
ObjectDoesNotExist
|
||||
)
|
||||
|
||||
from rest_framework import exceptions, status
|
||||
from rest_framework.exceptions import (
|
||||
MethodNotAllowed,
|
||||
NotAuthenticated,
|
||||
ParseError,
|
||||
PermissionDenied,
|
||||
ValidationError,
|
||||
|
Reference in New Issue
Block a user