1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-02-26 01:46:30 +00:00

Compare commits

..

No commits in common. "6a1b51dbbf209b66d48ea6de3033a7a65d90ffe7" and "0a853fd3e61096b2be538258d39ad4755d8e455d" have entirely different histories.

2 changed files with 1 additions and 6 deletions

View File

@ -1,5 +0,0 @@
from rest_framework.pagination import PageNumberPagination
class CustomPagination(PageNumberPagination):
page_size_query_param = 'page_size'

View File

@ -252,7 +252,7 @@ REST_FRAMEWORK = {
'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.TokenAuthentication',
'oauth2_provider.contrib.rest_framework.OAuth2Authentication', 'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
], ],
'DEFAULT_PAGINATION_CLASS': 'apps.api.pagination.CustomPagination', 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 20, 'PAGE_SIZE': 20,
} }