Distinct lists

This commit is contained in:
Mouse Reeve 2021-02-03 16:49:42 -08:00
parent c529ecfb9d
commit c03dcaf842

View file

@ -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)