From 79c1b761d47ecb8863ec6148e5a503cb22aec9b1 Mon Sep 17 00:00:00 2001 From: Michael Price Date: Wed, 14 Mar 2018 21:47:00 -0400 Subject: [PATCH] Add the path to the defaul open api path. Display models closed by default. Signed-off-by: Michael Price --- mayan/settings/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mayan/settings/base.py b/mayan/settings/base.py index afbc285acd..484cca2236 100644 --- a/mayan/settings/base.py +++ b/mayan/settings/base.py @@ -9,7 +9,6 @@ https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ - from __future__ import unicode_literals import os @@ -292,6 +291,8 @@ TIMEZONE_SESSION_KEY = 'django_timezone' STRONGHOLD_PUBLIC_URLS = (r'^/docs/.+$',) # ----- Swagger -------- SWAGGER_SETTINGS = { + 'DEFAULT_INFO': 'rest_api.schemas.openapi_info', + 'DEFAULT_MODEL_DEPTH': 1, 'DOC_EXPANSION': 'None', } # ----- AJAX REDIRECT -----