diff --git a/drf_spectacular/views.py b/drf_spectacular/views.py index 95f0f975..48785644 100644 --- a/drf_spectacular/views.py +++ b/drf_spectacular/views.py @@ -122,6 +122,7 @@ class SpectacularSwaggerView(APIView): renderer_classes = [TemplateHTMLRenderer] permission_classes = spectacular_settings.SERVE_PERMISSIONS authentication_classes = AUTHENTICATION_CLASSES + versioning_class = None url_name = 'schema' url = None template_name = 'drf_spectacular/swagger_ui.html' @@ -231,6 +232,7 @@ class SpectacularRedocView(APIView): renderer_classes = [TemplateHTMLRenderer] permission_classes = spectacular_settings.SERVE_PERMISSIONS authentication_classes = AUTHENTICATION_CLASSES + versioning_class = None url_name = 'schema' url = None template_name = 'drf_spectacular/redoc.html'