From e68a9c223d0cc0b677d052373b263eec7e0d629f Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 29 Aug 2019 22:00:15 +1000 Subject: [PATCH] Fix broken api-doc page https://www.django-rest-framework.org/community/3.10-announcement/#continuing-to-use-coreapi --- InvenTree/InvenTree/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 553768beeb..d89a57cb78 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -152,7 +152,8 @@ REST_FRAMEWORK = { 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.TokenAuthentication', - ) + ), + 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema' } WSGI_APPLICATION = 'InvenTree.wsgi.application'