Update fetching with API.

This commit is contained in:
Drew Larson
2017-05-23 19:27:57 -06:00
parent 8ad4a22378
commit ecdfc1bddf
4 changed files with 40 additions and 15 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
'rest_framework.permissions.IsAuthenticated'
],
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.SessionAuthentication',