浏览 139
分享
Pagination
Pagination allows you to control how many objects per page are returned. To enable it add the following lines to tutorial/settings.py
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 10
}
评论列表