From b93a0cc72275cc534663a610c4121f275eb4d4f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=20V=C3=AEjdea?= Date: Mon, 4 Mar 2019 03:28:32 +0200 Subject: [PATCH] Improve swagger-ui initial render time This sets the `defaultModelsExpandDepth` setting to 0, improving the initial render time by greatly reducing the number of elements to be drawn on screen. ref https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md#display --- netbox/netbox/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 95b52a7ec..e09fa1683 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -329,6 +329,7 @@ SWAGGER_SETTINGS = { }, 'VALIDATOR_URL': None, 'DEFAULT_INFO': 'netbox.urls.swagger_info', + 'DEFAULT_MODEL_DEPTH': 0, }