X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8d8fb6e63435faa5de2d07a52812f23b1796a29d..8615d540551e222c91409c7f37f9f237f520b88e:/apps/picture/models.py?ds=inline diff --git a/apps/picture/models.py b/apps/picture/models.py index 1e27ce68e..dd6ae8e8b 100644 --- a/apps/picture/models.py +++ b/apps/picture/models.py @@ -148,7 +148,7 @@ class Picture(models.Model): for tag in catalogue.models.Tag.objects.filter(category='author'): pics_by_author[tag] = [] - for pic in pics: + for pic in pics.iterator(): authors = list(pic.tags.filter(category='author')) if authors: for author in authors: