mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-04 14:28:49 +00:00
Don't show books lists when item isn't approved
This commit is contained in:
parent
4eefe33d9b
commit
5ddb3b810e
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class Book(View):
|
||||||
'rating': reviews.aggregate(Avg('rating'))['rating__avg'],
|
'rating': reviews.aggregate(Avg('rating'))['rating__avg'],
|
||||||
'tags': models.UserTag.objects.filter(book=book),
|
'tags': models.UserTag.objects.filter(book=book),
|
||||||
'lists': privacy_filter(
|
'lists': privacy_filter(
|
||||||
request.user, book.list_set.all()
|
request.user, book.list_set.filter(listitem__approved=True)
|
||||||
),
|
),
|
||||||
'user_tags': user_tags,
|
'user_tags': user_tags,
|
||||||
'user_shelves': user_shelves,
|
'user_shelves': user_shelves,
|
||||||
|
|
Loading…
Reference in a new issue