From c03dcaf8428b35e5e10f0abd761836e6542b9d9b Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 3 Feb 2021 16:49:42 -0800 Subject: [PATCH] Distinct lists --- bookwyrm/views/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/list.py b/bookwyrm/views/list.py index 88938a67e..5128c2b04 100644 --- a/bookwyrm/views/list.py +++ b/bookwyrm/views/list.py @@ -30,7 +30,7 @@ class Lists(View): lists = models.List.objects.filter( ~Q(user=user), books__isnull=False, - ).all() + ).distinct().all() lists = privacy_filter(request.user, lists, ['public', 'followers']) paginated = Paginator(lists, 12)