X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ef05330bad3d16d8f478a6cb34e6744cc7565abd..HEAD:/src/wolnelektury/settings/contrib.py?ds=inline diff --git a/src/wolnelektury/settings/contrib.py b/src/wolnelektury/settings/contrib.py index aaef8b2ce..e5b2f60d6 100644 --- a/src/wolnelektury/settings/contrib.py +++ b/src/wolnelektury/settings/contrib.py @@ -31,7 +31,10 @@ REST_FRAMEWORK = { 'api.drf_auth.WLTokenAuthentication', 'api.drf_auth.PistonOAuthAuthentication', 'rest_framework.authentication.SessionAuthentication', - ) + ), + 'DEFAULT_PAGINATION_CLASS': 'api.pagination.WLLimitOffsetPagination', + 'PAGE_SIZE': 10, + 'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.NamespaceVersioning', }