mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
Don't show duplicate reviews on book page
This commit is contained in:
parent
c72bd98957
commit
c07aa387fa
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ def book_page(request, book_identifier, tab='friends'):
|
||||||
'shelf': shelf,
|
'shelf': shelf,
|
||||||
'user_reviews': user_reviews,
|
'user_reviews': user_reviews,
|
||||||
'user_rating': user_reviews.aggregate(Avg('rating')),
|
'user_rating': user_reviews.aggregate(Avg('rating')),
|
||||||
'reviews': reviews,
|
'reviews': reviews.distinct(),
|
||||||
'rating': rating['rating__avg'],
|
'rating': rating['rating__avg'],
|
||||||
'tags': tags,
|
'tags': tags,
|
||||||
'user_tags': user_tags,
|
'user_tags': user_tags,
|
||||||
|
|
Loading…
Reference in a new issue