pagination

This commit is contained in:
Pratyush Desai 2022-01-08 06:58:16 +05:30
parent f0975c6505
commit 91430d30a0
Signed by: pratyush
GPG Key ID: DBA5BB7505946FAD

View File

@ -125,3 +125,8 @@ STATIC_URL = 'static/'
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 10
}