refactor(access): Use exceptions for permission flow as required

ref: #442 #456
This commit is contained in:
2024-12-28 17:33:11 +09:30
parent fbaf8770df
commit a07dee370c
3 changed files with 65 additions and 7 deletions

View File

@ -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,