902 using get_page for Paginator instead of page

This commit is contained in:
Pablo Barton
2021-04-14 21:57:34 -04:00
parent 1e96191414
commit 88d37736ee
10 changed files with 14 additions and 14 deletions

View File

@ -60,7 +60,7 @@ class Book(View):
paginated = Paginator(
reviews.exclude(Q(content__isnull=True) | Q(content="")), PAGE_LENGTH
)
reviews_page = paginated.page(page)
reviews_page = paginated.get_page(page)
user_tags = readthroughs = user_shelves = other_edition_shelves = []
if request.user.is_authenticated:
@ -285,7 +285,7 @@ class Editions(View):
paginated = Paginator(editions.filter(**filters).all(), PAGE_LENGTH)
data = {
"editions": paginated.page(page),
"editions": paginated.get_page(page),
"work": work,
"languages": languages,
"formats": set(