Apply CustomNumberPagination to all API views

This commit is contained in:
icovada
2026-01-10 17:14:53 +00:00
parent 796089cdb3
commit c015b78cd6
3 changed files with 1 additions and 12 deletions
+1 -2
View File
@@ -433,8 +433,7 @@ REST_FRAMEWORK = {
"apps.api.permissions.NotInDemoMode",
"rest_framework.permissions.DjangoModelPermissions",
],
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination",
"PAGE_SIZE": 10,
"DEFAULT_PAGINATION_CLASS": "apps.api.custom.pagination.CustomPageNumberPagination",
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
}