From a7fca1868b9e9918e3f1fd6ae9570b088c257aa3 Mon Sep 17 00:00:00 2001 From: Jair Henrique Date: Sat, 6 Jun 2020 13:30:09 -0300 Subject: [PATCH] Fix #84 --- drf_spectacular/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drf_spectacular/views.py b/drf_spectacular/views.py index c2ad26d5..a45c60e2 100644 --- a/drf_spectacular/views.py +++ b/drf_spectacular/views.py @@ -56,7 +56,7 @@ class SpectacularJSONAPIView(SpectacularAPIView): renderer_classes = [OpenApiJsonRenderer, OpenApiJsonRenderer2] -class SpectacularSwaggerView(APIView): +class SpectacularSwaggerView(SpectacularAPIView): renderer_classes = [TemplateHTMLRenderer] url_name = 'schema' template_name = 'drf_spectacular/swagger_ui.html' @@ -69,7 +69,7 @@ def get(self, request, *args, **kwargs): ) -class SpectacularRedocView(APIView): +class SpectacularRedocView(SpectacularAPIView): renderer_classes = [TemplateHTMLRenderer] url_name = 'schema' template_name = 'drf_spectacular/redoc.html'