902 using get_page for Paginator instead of page
This commit is contained in:
parent
1e96191414
commit
88d37736ee
10 changed files with 14 additions and 14 deletions
|
@ -524,7 +524,7 @@ def to_ordered_collection_page(
|
|||
""" serialize and pagiante a queryset """
|
||||
paginated = Paginator(queryset, PAGE_LENGTH)
|
||||
|
||||
activity_page = paginated.page(page)
|
||||
activity_page = paginated.get_page(page)
|
||||
if id_only:
|
||||
items = [s.remote_id for s in activity_page.object_list]
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue