aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/settings.py')
-rw-r--r--pysite/settings.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pysite/settings.py b/pysite/settings.py
index 914fcbe5..3392426d 100644
--- a/pysite/settings.py
+++ b/pysite/settings.py
@@ -167,9 +167,12 @@ else:
# Django REST framework
# http://www.django-rest-framework.org
REST_FRAMEWORK = {
- 'DEFAULT_AUTHENTICATION_CLASSES': [
- 'rest_framework.authentication.TokenAuthentication'
- ],
+ 'DEFAULT_AUTHENTICATION_CLASSES': (
+ 'rest_framework.authentication.TokenAuthentication',
+ ),
+ 'DEFAULT_PERMISSION_CLASSES': (
+ 'rest_framework.permissions.DjangoModelPermissions',
+ ),
'TEST_REQUEST_DEFAULT_FORMAT': 'json'
}