Fixed test settings.

see #1078
This commit is contained in:
Antoine Nguyen
2017-03-16 12:08:10 +01:00
parent b260ca5417
commit 78da3240fb
+2
View File
@@ -45,6 +45,7 @@ INSTALLED_APPS = (
'django.contrib.sites',
'django.contrib.staticfiles',
'reversion',
'rest_framework',
'rest_framework.authtoken'
)
@@ -141,6 +142,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
),
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',