X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d2b0cc75d0835ad5384bec638fea6ea244eadb40..04a361d93a6d8edb44424920fe4bd39e3fa8aebc:/src/catalogue/views.py?ds=sidebyside 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':