From 39d31060e10e343b187b1b568ecabefc261d294c Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 3 Feb 2021 16:11:42 -0800 Subject: [PATCH] Sort list preview by most recently added --- bookwyrm/templates/lists/list_items.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/lists/list_items.html b/bookwyrm/templates/lists/list_items.html index 4560147f..942579ca 100644 --- a/bookwyrm/templates/lists/list_items.html +++ b/bookwyrm/templates/lists/list_items.html @@ -9,8 +9,8 @@
- {% for book in list.books.all|slice:5 %} - {% include 'snippets/book_cover.html' with book=book size="small" %} + {% for book in list.listitem_set.all|slice:5 %} + {% include 'snippets/book_cover.html' with book=book.book size="small" %} {% endfor %}