mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-08 00:05:30 +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"""
|
"""list of groups"""
|
||||||
user = get_user_from_username(request.user, username)
|
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 = {
|
data = {
|
||||||
"user": user,
|
"user": user,
|
||||||
"is_self": request.user.id == user.id,
|
"is_self": request.user.id == user.id,
|
||||||
|
|
Loading…
Reference in a new issue