Remove superfluous calls to all()
This commit is contained in:
parent
d69ce8cbbd
commit
77775d9bf8
7 changed files with 7 additions and 8 deletions
|
@ -174,7 +174,7 @@ def get_suggested_books(user, max_books=5):
|
|||
)
|
||||
shelf = user.shelf_set.get(identifier=preset)
|
||||
|
||||
shelf_books = shelf.shelfbook_set.order_by("-updated_date").all()[:limit]
|
||||
shelf_books = shelf.shelfbook_set.order_by("-updated_date")[:limit]
|
||||
if not shelf_books:
|
||||
continue
|
||||
shelf_preview = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue