forked from mirrors/bookwyrm
Distinct lists
This commit is contained in:
parent
c529ecfb9d
commit
c03dcaf842
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue