Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
d43861b5
Commit
d43861b5
authored
May 26, 2021
by
carlosribas
Browse files
Set page_size_query_param
parent
b674a0ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
rnacentral/rnacentral/utils/pagination.py
rnacentral/rnacentral/utils/pagination.py
+1
-0
No files found.
rnacentral/rnacentral/utils/pagination.py
View file @
d43861b5
...
...
@@ -18,6 +18,7 @@ class CustomPaginatorClass(Paginator):
class
LargeTablePagination
(
PageNumberPagination
):
"""Use this paginator class to avoid large table count query"""
django_paginator_class
=
CustomPaginatorClass
page_size_query_param
=
'page_size'
def
get_paginated_response
(
self
,
data
):
return
Response
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment