mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-26 01:50:34 +00:00
Adds comment
This commit is contained in:
parent
73d6dbab4c
commit
5313b283dd
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ class Shelf(View):
|
|||
if shelf_identifier:
|
||||
books = books.annotate(shelved_date=F("shelfbook__shelved_date"))
|
||||
else:
|
||||
# sorting by shelved date will cause duplicates in the "all books" view
|
||||
books = books.annotate(shelved_date=F("updated_date"))
|
||||
books = books.annotate(
|
||||
rating=Subquery(reviews.values("rating")[:1]),
|
||||
|
|
Loading…
Reference in a new issue