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
|
@ -44,7 +44,7 @@ class Lists(View):
|
|||
|
||||
paginated = Paginator(lists, 12)
|
||||
data = {
|
||||
"lists": paginated.page(page),
|
||||
"lists": paginated.get_page(page),
|
||||
"list_form": forms.ListForm(),
|
||||
"path": "/list",
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ class UserLists(View):
|
|||
data = {
|
||||
"user": user,
|
||||
"is_self": request.user.id == user.id,
|
||||
"lists": paginated.page(page),
|
||||
"lists": paginated.get_page(page),
|
||||
"list_form": forms.ListForm(),
|
||||
"path": user.local_path + "/lists",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue