Commit 5b91c656a337aa707d80be5aab484dc7e35481f2
1 parent
01cad7c0
Exists in
master
and in
5 other branches
added pagination configuration for API
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
amadeus/settings.py
... | ... | @@ -215,7 +215,8 @@ REST_FRAMEWORK = { |
215 | 215 | 'DEFAULT_AUTHENTICATION_CLASSES':( |
216 | 216 | 'oauth2_provider.ext.rest_framework.OAuth2Authentication',), |
217 | 217 | 'DEFAULT_PERMISSION_CLASSES':( |
218 | - 'rest_framework.permissions.IsAuthenticated',) | |
218 | + 'rest_framework.permissions.IsAuthenticated',), | |
219 | + 'PAGE_SIZE': 10, #pagination purposes | |
219 | 220 | } |
220 | 221 | |
221 | 222 | OAUTH2_PROVIDER = { | ... | ... |