Fix AttributeError at /docs/

Using this solution https://github.com/encode/django-rest-framework/issues/6809#issuecomment-546302742

To fix:
AttributeError at /docs/
'AutoSchema' object has no attribute 'get_link'
This commit is contained in:
Mahmoud Adel 2020-03-12 17:42:09 +02:00 committed by GitHub
parent 6460348709
commit 654eb22b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,8 @@ REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.TokenAuthentication',
)
),
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
}
SWAGGER_SETTINGS = {