fix: resolve unintentional override of rest framework classes

This commit is contained in:
ramvignesh-b
2026-04-26 13:30:14 +05:30
parent fbd4bd4aec
commit 25d5bf142a
+1 -1
View File
@@ -78,7 +78,6 @@ MIDDLEWARE = [
"django_structlog.middlewares.RequestMiddleware", "django_structlog.middlewares.RequestMiddleware",
] ]
REST_FRAMEWORK = {"DEFAULT_RENDERER_CLASSES": ("rest_framework.renderers.JSONRenderer",)}
ROOT_URLCONF = "config.urls" ROOT_URLCONF = "config.urls"
@@ -106,6 +105,7 @@ AUTH_USER_MODEL = "users.User"
REST_FRAMEWORK = { REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": ("rest_framework_simplejwt.authentication.JWTAuthentication",), "DEFAULT_AUTHENTICATION_CLASSES": ("rest_framework_simplejwt.authentication.JWTAuthentication",),
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",), "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
"DEFAULT_RENDERER_CLASSES": ("rest_framework.renderers.JSONRenderer",),
} }
SIMPLE_JWT = { SIMPLE_JWT = {