Skip to content

Commit

Permalink
Revert "remove versioning from HTML (UI) template views #1036"
Browse files Browse the repository at this point in the history
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 388da8d.
  • Loading branch information
tfranzel committed Sep 22, 2023
1 parent ae68f5c commit cbfc84f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drf_spectacular/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit cbfc84f

Please sign in to comment.