From cbfc84f26face4d2fa446d39aaf2f9c62b7bfb7e Mon Sep 17 00:00:00 2001 From: "T. Franzel" Date: Sat, 23 Sep 2023 01:41:45 +0200 Subject: [PATCH] Revert "remove versioning from HTML (UI) template views #1036" Even though this change makes sense in principle, it may be a regression and having the HTML views have versioning classes does make sense in certain situations. Revert the change as this is not a clear improvement on closer inspection. This reverts commit 388da8dedb3d3ec9d687146934bc6e41ef83dcf5. --- drf_spectacular/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/drf_spectacular/views.py b/drf_spectacular/views.py index 48785644..95f0f975 100644 --- a/drf_spectacular/views.py +++ b/drf_spectacular/views.py @@ -122,7 +122,6 @@ 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' @@ -232,7 +231,6 @@ 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'