X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f29c8cb6c8bb788fe4dcd93f59dee829d1281c69..0c966fecc8002d7413c25bbb03e961add58ca19c:/src/picture/models.py diff --git a/src/picture/models.py b/src/picture/models.py index f496726a3..5bc8d49d9 100644 --- a/src/picture/models.py +++ b/src/picture/models.py @@ -127,8 +127,11 @@ class Picture(models.Model): def author_str(self): return ", ".join(str(t) for t in self.tags.filter(category='author')) + def tag_unicode(self, category): + return ", ".join(unicode(t) for t in self.tags.filter(category=category)) + def author_unicode(self): - return ", ".join(unicode(t) for t in self.tags.filter(category='author')) + return self.tag_unicode('author') @permalink def get_absolute_url(self):