root: fix API requests erroring
This commit is contained in:
parent
a64e53479c
commit
363940ee8d
|
@ -35,7 +35,7 @@ def before_send(event, hint):
|
||||||
SentryIgnoredException,
|
SentryIgnoredException,
|
||||||
)
|
)
|
||||||
if "exc_info" in hint:
|
if "exc_info" in hint:
|
||||||
_exc_type, exc_value, _ = hint["exc_info"]
|
_, exc_value, _ = hint["exc_info"]
|
||||||
if isinstance(exc_value, ignored_classes):
|
if isinstance(exc_value, ignored_classes):
|
||||||
LOGGER.info("Supressing error %r", exc_value)
|
LOGGER.info("Supressing error %r", exc_value)
|
||||||
return None
|
return None
|
||||||
|
|
|
@ -131,7 +131,10 @@ REST_FRAMEWORK = {
|
||||||
"rest_framework.filters.OrderingFilter",
|
"rest_framework.filters.OrderingFilter",
|
||||||
"rest_framework.filters.SearchFilter",
|
"rest_framework.filters.SearchFilter",
|
||||||
],
|
],
|
||||||
"DEFAULT_PERMISSION_CLASSES": ("passbook.api.permissions.CustomObjectPermissions"),
|
"DEFAULT_PERMISSION_CLASSES": (
|
||||||
|
"rest_framework.permissions.DjangoObjectPermissions",
|
||||||
|
"passbook.api.permissions.CustomObjectPermissions",
|
||||||
|
),
|
||||||
"DEFAULT_AUTHENTICATION_CLASSES": (
|
"DEFAULT_AUTHENTICATION_CLASSES": (
|
||||||
"passbook.api.auth.PassbookTokenAuthentication",
|
"passbook.api.auth.PassbookTokenAuthentication",
|
||||||
"rest_framework.authentication.SessionAuthentication",
|
"rest_framework.authentication.SessionAuthentication",
|
||||||
|
|
Reference in New Issue