Move profile and settings into the new unified dashboard, showing user info in one place
This commit is contained in:
parent
2d826734a0
commit
7edefe23c3
37 changed files with 726 additions and 500 deletions
|
|
@ -148,13 +148,13 @@ class CardListView(ReusablePaginationMixin, ListView):
|
|||
# For non-grouped mode, transform the built-in paginator page
|
||||
if "page_obj" in context:
|
||||
page = context["page_obj"]
|
||||
# Create a unified pagination context dict
|
||||
# Create a unified pagination context dict with updated keys
|
||||
custom_page_obj = {
|
||||
"number": page.number,
|
||||
"has_previous": page.has_previous(),
|
||||
"has_next": page.has_next(),
|
||||
"previous_page": page.previous_page_number() if page.has_previous() else 1,
|
||||
"next_page": page.next_page_number() if page.has_next() else page.paginator.num_pages,
|
||||
"previous_page_number": page.previous_page_number() if page.has_previous() else 1,
|
||||
"next_page_number": page.next_page_number() if page.has_next() else page.paginator.num_pages,
|
||||
"paginator": {"num_pages": page.paginator.num_pages},
|
||||
}
|
||||
context["page_obj"] = custom_page_obj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue