Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jairhenrique committed Jun 6, 2020
1 parent bed451c commit a7fca18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drf_spectacular/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit a7fca18

Please sign in to comment.