Commit 108bd830 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt

add rest api pagination to default settings

Pagination settings change the default response format of the API for
collection GET requests, so we want a proper default for all instances.
Otherwise people will complain that the lohrothek frontend (thekno)
"doesn’t work" :).
parent a10ac3e0
Pipeline #1568 passed with stage
in 1 minute and 56 seconds
......@@ -148,7 +148,9 @@ LOGIN_REDIRECT_URL = LOGOUT_REDIRECT_URL = 'home'
# https://www.django-rest-framework.org/
REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',)
'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',),
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 100
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment