X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dfd584e3b136d770bf56569030d10712a8722569..e086b48a37bcbcc7d19890b5954ec93213440b32:/apps/picture/models.py?ds=inline diff --git a/apps/picture/models.py b/apps/picture/models.py index 75ea4c37d..5fc37228f 100644 --- a/apps/picture/models.py +++ b/apps/picture/models.py @@ -380,5 +380,5 @@ class Picture(models.Model): # copied from book.py, figure out def related_themes(self): - return catalogue.models.Tag.usage_for_queryset( + return catalogue.models.Tag.objects.usage_for_queryset( self.areas.all(), counts=True).filter(category__in=('theme', 'thing'))