X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c38cfacc4f2cdb7a9e702d0b7b46978089413677..0534cba3ab83d0d10e52c2c27eb6387c9763481b:/apps/opds/views.py diff --git a/apps/opds/views.py b/apps/opds/views.py index e01c17283..5a9e44a41 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)