mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-04 22:38:43 +00:00
fix user Groups view pagination function
This commit is contained in:
parent
90d92edd75
commit
484e9ed959
1 changed files with 3 additions and 1 deletions
|
@ -145,7 +145,9 @@ class Groups(View):
|
|||
"""list of groups"""
|
||||
user = get_user_from_username(request.user, username)
|
||||
|
||||
paginated = Paginator(models.Group.memberships.filter(user=user))
|
||||
paginated = Paginator(
|
||||
models.Group.memberships.filter(user=user).order_by("-created_date"), PAGE_LENGTH
|
||||
)
|
||||
data = {
|
||||
"user": user,
|
||||
"is_self": request.user.id == user.id,
|
||||
|
|
Loading…
Reference in a new issue