From 781d1b18e76279d03887f816072c7f262a96e46a Mon Sep 17 00:00:00 2001 From: Aleksei Mikhailov Date: Sat, 18 May 2019 16:07:16 +0300 Subject: [PATCH] Fix excluding schema view from doc for DRF 3.9 --- rest_framework_swagger/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rest_framework_swagger/views.py b/rest_framework_swagger/views.py index 851f5102..7e44674b 100644 --- a/rest_framework_swagger/views.py +++ b/rest_framework_swagger/views.py @@ -15,6 +15,7 @@ def get_swagger_view(title=None, url=None, patterns=None, urlconf=None): class SwaggerSchemaView(APIView): _ignore_model_permissions = True exclude_from_schema = True + schema = None permission_classes = [AllowAny] renderer_classes = [ CoreJSONRenderer,