X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/18aa8ca52202003e5628a882f3469a04d905cc05..52f5582c513e41f069f60b5e45b457dc17413166:/src/wolnelektury/settings/contrib.py diff --git a/src/wolnelektury/settings/contrib.py b/src/wolnelektury/settings/contrib.py index d03479f82..e5b2f60d6 100644 --- a/src/wolnelektury/settings/contrib.py +++ b/src/wolnelektury/settings/contrib.py @@ -28,9 +28,13 @@ REST_FRAMEWORK = { 'api.renderers.LegacyXMLRenderer', ), 'DEFAULT_AUTHENTICATION_CLASSES': ( + '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', }