Improves privacy-related display
This commit is contained in:
parent
dcd4baed82
commit
bcdf2ee142
6 changed files with 29 additions and 25 deletions
|
@ -96,9 +96,8 @@ class Book(View):
|
|||
'rating': reviews.aggregate(Avg('rating'))['rating__avg'],
|
||||
'tags': models.UserTag.objects.filter(book=book),
|
||||
'lists': privacy_filter(
|
||||
request.user,
|
||||
book.list_set.all(),
|
||||
['public', 'unlisted', 'followers']),
|
||||
request.user, book.list_set.all()
|
||||
),
|
||||
'user_tags': user_tags,
|
||||
'user_shelves': user_shelves,
|
||||
'other_edition_shelves': other_edition_shelves,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue