Don't show duplicate reviews on book page

This commit is contained in:
Mouse Reeve 2020-03-07 13:21:46 -08:00
parent c72bd98957
commit c07aa387fa

View file

@ -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,