diff --git a/unisportomat/quiz/pagination.py b/unisportomat/quiz/pagination.py index 56b16cfd1f4f58694ad268f00b5725bd6620b242..385a0610f6095cde89299ff5e4ebd25251083f6b 100644 --- a/unisportomat/quiz/pagination.py +++ b/unisportomat/quiz/pagination.py @@ -1,8 +1,17 @@ +""" +Adds the ability paginate content provided via REST API. +Can either be given as an argument in a model +or be given globally via settings.py. +""" + from rest_framework.pagination import PageNumberPagination class PageNumberWithPageSizePagination(PageNumberPagination): - page_size_query_param = "page_size" + """ + This pagination style accepts a single number page number + in the request query parameters. + SOURCE: https://github.com/bmihelac/ra-data-django-rest-framework + """ - -# SOURCE: https://github.com/bmihelac/ra-data-django-rest-framework + page_size_query_param = "page_size" diff --git a/unisportomat/unisportomat/settings.py b/unisportomat/unisportomat/settings.py index 9360de8f778422b5830dcf6928928035ff320469..72731568e76fd6cfe619885c283f1fb8e157354e 100644 --- a/unisportomat/unisportomat/settings.py +++ b/unisportomat/unisportomat/settings.py @@ -3,7 +3,7 @@ Django settings for unisportomat project. Generated by 'django-admin startproject' using Django 3.2. -For more information on this file, see +For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see