X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d2b0cc75d0835ad5384bec638fea6ea244eadb40..1b80c204be885588f7cbe95610e3677f2f886801:/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':