1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-20 17:41:55 +02:00

Add some decoration

This commit is contained in:
Yohann D'ANELLO
2020-02-17 19:44:56 +01:00
parent 55977bcbe7
commit 559445c8b4
5 changed files with 24 additions and 3 deletions

View File

@ -61,6 +61,7 @@ INSTALLED_APPS = [
'activity',
'member',
'note',
'api',
]
LOGIN_REDIRECT_URL = '/note/transfer/'
@ -127,6 +128,7 @@ REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
# TODO Maybe replace it with our custom permissions system
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
],
'DEFAULT_AUTHENTICATION_CLASSES': [