Add default pagination class

This commit is contained in:
José Padilla 2017-11-24 14:33:11 -05:00
parent 9c528016fb
commit 6925b28554
No known key found for this signature in database
GPG Key ID: AAE3EF579B2987B1

View File

@ -142,6 +142,7 @@ We'd also like to set a few global settings. We'd like to turn on pagination, a
)
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 10
}