Merge pull request #8 from mohmyo/patch-2

Fix AttributeError at /docs/
This commit is contained in:
Michael 2020-03-13 00:38:45 -05:00 committed by GitHub
commit 344a52929b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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