Switch the order of the DEFAULT_AUTHENTICATION_CLASSES of DRF. GitLab issue #400.

Thanks to @NiceGuyIT for the report and research.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-14 14:14:24 -04:00
parent b8c74125e8
commit abc34f7942
2 changed files with 3 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
- Fix cabinets permission and access control checking. - Fix cabinets permission and access control checking.
- The permission to add or remove documents to cabinets now applies to documents too. - The permission to add or remove documents to cabinets now applies to documents too.
- Equalize dashboard widgets heights. - Equalize dashboard widgets heights.
- Switch the order of the DEFAULT_AUTHENTICATION_CLASSES of DRF. GitLab #400.
2.5.2 (2017-07-08) 2.5.2 (2017-07-08)
================== ==================

View File

@@ -256,9 +256,9 @@ INTERNAL_IPS = ('127.0.0.1',)
# ---------- Django REST framework ----------- # ---------- Django REST framework -----------
REST_FRAMEWORK = { REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': ( 'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.BasicAuthentication',
), ),
'PAGE_SIZE': 10, 'PAGE_SIZE': 10,
} }