X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e9327dee290c524806c89e1c3cb546f95ee51e52..23f0993732ac597e0a4ab1330b62b970c09d476c:/apps/picture/views.py diff --git a/apps/picture/views.py b/apps/picture/views.py index 24457e297..3f04e3c89 100644 --- a/apps/picture/views.py +++ b/apps/picture/views.py @@ -23,7 +23,7 @@ def picture_detail(request, picture): picture = get_object_or_404(Picture, slug=picture) categories = SortedDict() - for tag in picture.tags: + for tag in picture.tags.iterator(): categories.setdefault(tag.category, []).append(tag) picture_themes = []