From 484e9ed959d9f5333e581e24133aec1c0791e74a Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Tue, 5 Oct 2021 08:14:52 +1100 Subject: [PATCH] fix user Groups view pagination function --- bookwyrm/views/user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bookwyrm/views/user.py b/bookwyrm/views/user.py index 808ca7385..dd30b2b46 100644 --- a/bookwyrm/views/user.py +++ b/bookwyrm/views/user.py @@ -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,