X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d2b0cc75d0835ad5384bec638fea6ea244eadb40..ac58d34d34f2290f75e05b11c4c1919cec163375:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index b110b01c0..2ef0d3bf0 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -205,7 +205,7 @@ def theme_list(request, tags, list_type): # TODO: Pictures on shelves not supported yet. books = Book.tagged.with_all(shelf_tags).order_by() fragments = fragments.filter(Q(book__in=books) | Q(book__ancestor__in=books)) - else: + elif list_type == 'books': fragments = fragments.filter(book__findable=True) if not fragments and len(tags) == 1 and list_type == 'books':