Skip to content
Snippets Groups Projects
Commit 00da25c7 authored by dominip89's avatar dominip89
Browse files

Fixes Linter Issues

parent 6888f31c
No related branches found
No related tags found
No related merge requests found
"""
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 from rest_framework.pagination import PageNumberPagination
class PageNumberWithPageSizePagination(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
"""
page_size_query_param = "page_size"
# SOURCE: https://github.com/bmihelac/ra-data-django-rest-framework
...@@ -3,7 +3,7 @@ Django settings for unisportomat project. ...@@ -3,7 +3,7 @@ Django settings for unisportomat project.
Generated by 'django-admin startproject' using Django 3.2. 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/ https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see For the full list of settings and their values, see
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment