mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 08:32:08 +00:00
fix: every page of group_list_page lists all
groups
This commit is contained in:
parent
5fd6af52cf
commit
e899a3f825
@ -279,14 +279,13 @@ def group_list_page(request, page=1):
|
||||
previous_page = current_page.previous_page_number()
|
||||
except Exception:
|
||||
pass
|
||||
next_page = None
|
||||
try:
|
||||
next_page = current_page.next_page_number()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return render(request, "oj/group/group_list.html", {
|
||||
"groups": groups,
|
||||
"groups": current_page.object_list,
|
||||
"contests": current_page, "page": int(page),
|
||||
"previous_page": previous_page, "next_page": next_page,
|
||||
"keyword": keyword
|
||||
|
Loading…
Reference in New Issue
Block a user