We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94492ac commit e544522Copy full SHA for e544522
rest_framework_docs/views.py
@@ -10,7 +10,7 @@ class DRFDocsView(TemplateView):
10
11
def get_context_data(self, **kwargs):
12
settings = DRFSettings().settings
13
- if settings["HIDDEN"]:
+ if not settings["SHOW_DOCS"]:
14
raise Http404("Django Rest Framework Docs are hidden. Check your settings.")
15
16
context = super(DRFDocsView, self).get_context_data(**kwargs)
0 commit comments