From d4fcf88cf5357c525ba9c76b962fd9e944f1bae3 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Fri, 24 Sep 2021 21:57:01 +1000 Subject: [PATCH] add list cards to groups page - add list cards to groups page based on lists page - add sort to members on group page --- bookwyrm/templates/groups/group.html | 40 +++++++++++++++++++++++++--- bookwyrm/views/group.py | 2 +- 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/bookwyrm/templates/groups/group.html b/bookwyrm/templates/groups/group.html index 01a10a39a..c14694154 100644 --- a/bookwyrm/templates/groups/group.html +++ b/bookwyrm/templates/groups/group.html @@ -34,10 +34,44 @@ diff --git a/bookwyrm/views/group.py b/bookwyrm/views/group.py index 59d3e8d1e..fd4e7f2cd 100644 --- a/bookwyrm/views/group.py +++ b/bookwyrm/views/group.py @@ -48,7 +48,7 @@ class UserGroups(View): def get(self, request, username): """display a group""" user = get_user_from_username(request.user, username) - groups = models.Group.objects.filter(members=user) + groups = models.Group.objects.filter(members=user).order_by("-updated_date") paginated = Paginator(groups, 12) data = {