Skip to content

Commit e544522

Browse files
author
Emmanouil Konstantinidis
committed
Hide docs
1 parent 94492ac commit e544522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework_docs/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DRFDocsView(TemplateView):
1010

1111
def get_context_data(self, **kwargs):
1212
settings = DRFSettings().settings
13-
if settings["HIDDEN"]:
13+
if not settings["SHOW_DOCS"]:
1414
raise Http404("Django Rest Framework Docs are hidden. Check your settings.")
1515

1616
context = super(DRFDocsView, self).get_context_data(**kwargs)

0 commit comments

Comments
 (0)