diff --git a/passbook/lib/sentry.py b/passbook/lib/sentry.py index d803ef729..8aadcd385 100644 --- a/passbook/lib/sentry.py +++ b/passbook/lib/sentry.py @@ -35,7 +35,7 @@ def before_send(event, hint): SentryIgnoredException, ) if "exc_info" in hint: - _exc_type, exc_value, _ = hint["exc_info"] + _, exc_value, _ = hint["exc_info"] if isinstance(exc_value, ignored_classes): LOGGER.info("Supressing error %r", exc_value) return None diff --git a/passbook/root/settings.py b/passbook/root/settings.py index bd53ba074..4e7c2b381 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -131,7 +131,10 @@ REST_FRAMEWORK = { "rest_framework.filters.OrderingFilter", "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": ( "passbook.api.auth.PassbookTokenAuthentication", "rest_framework.authentication.SessionAuthentication",