X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e782ecb87d4e300bf1473c5b85123468c7c4193b..dec2b6f06be97c498010e0b3af0d27f27631142d:/apps/opds/views.py diff --git a/apps/opds/views.py b/apps/opds/views.py index bb38b7b6b..ec93da138 100644 --- a/apps/opds/views.py +++ b/apps/opds/views.py @@ -259,7 +259,7 @@ class ByTagFeed(AcquisitionFeed): def items(self, tag): books = Book.tagged.with_any([tag]) - l_tags = Tag.objects.filter(category='book', slug__in=[book.book_tag_slug() for book in books]) + l_tags = Tag.objects.filter(category='book', slug__in=[book.book_tag_slug() for book in books.iterator()]) descendants_keys = [book.pk for book in Book.tagged.with_any(l_tags)] if descendants_keys: books = books.exclude(pk__in=descendants_keys)