mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +03:00
Add a note on permissions needing to be a tuple
This commit is contained in:
parent
54b57c226e
commit
f4245040be
|
@ -168,7 +168,9 @@ INSTALLED_APPS = (
|
|||
)
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',),
|
||||
'DEFAULT_PERMISSION_CLASSES': (
|
||||
'rest_framework.permissions.IsAdminUser', # Note the trailing ',' character, this needs to be a tuple
|
||||
),
|
||||
'PAGE_SIZE': 10
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user