Hide other people's empty lists from lists page

This commit is contained in:
Mouse Reeve 2021-02-03 16:01:49 -08:00
parent 7af1f6c19d
commit 476d65552e

View file

@ -29,6 +29,7 @@ class Lists(View):
user = request.user if request.user.is_authenticated else None
lists = models.List.objects.filter(
~Q(user=user),
books__isnull=False,
).all()
lists = privacy_filter(request.user, lists, ['public', 'followers'])