Adds comment

This commit is contained in:
Mouse Reeve 2022-01-02 07:16:02 -08:00
parent 73d6dbab4c
commit 5313b283dd

View file

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