Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
swp-unisport
team-warumkeinrust
Backend
Commits
00da25c7
Commit
00da25c7
authored
3 years ago
by
dominip89
Browse files
Options
Downloads
Patches
Plain Diff
Fixes Linter Issues
parent
6888f31c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
unisportomat/quiz/pagination.py
+12
-3
12 additions, 3 deletions
unisportomat/quiz/pagination.py
unisportomat/unisportomat/settings.py
+1
-1
1 addition, 1 deletion
unisportomat/unisportomat/settings.py
with
13 additions
and
4 deletions
unisportomat/quiz/pagination.py
+
12
−
3
View file @
00da25c7
"""
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
This diff is collapsed.
Click to expand it.
unisportomat/unisportomat/settings.py
+
1
−
1
View file @
00da25c7
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment