X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8d8fb6e63435faa5de2d07a52812f23b1796a29d..d713c61258bf1fcebea7e21065ac2878f5bf45be:/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: