فهرست منبع

Fixes #2980: Improve rendering time for API docs

Jeremy Stretch 7 سال پیش
والد
کامیت
bd8b239e15
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      CHANGELOG.md
  2. 1 0
      netbox/netbox/settings.py

+ 1 - 0
CHANGELOG.md

@@ -20,6 +20,7 @@ v2.5.8 (FUTURE)
 * [#2966](https://github.com/digitalocean/netbox/issues/2966) - Accept `null` cable length_unit via API
 * [#2972](https://github.com/digitalocean/netbox/issues/2972) - Improve ContentTypeField serializer to elegantly handle invalid data
 * [#2976](https://github.com/digitalocean/netbox/issues/2976) - Add delete button to tag view
+* [#2980](https://github.com/digitalocean/netbox/issues/2980) - Improve rendering time for API docs
 
 ---
 

+ 1 - 0
netbox/netbox/settings.py

@@ -315,6 +315,7 @@ SWAGGER_SETTINGS = {
         'utilities.custom_inspectors.IdInFilterInspector',
         'drf_yasg.inspectors.CoreAPICompatInspector',
     ],
+    'DEFAULT_MODEL_DEPTH': 1,
     'DEFAULT_PAGINATOR_INSPECTORS': [
         'utilities.custom_inspectors.NullablePaginatorInspector',
         'drf_yasg.inspectors.DjangoRestResponsePagination',