X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/90e4a87f6ebffca42088cb952281c40555d2c520..f29c8cb6c8bb788fe4dcd93f59dee829d1281c69:/src/picture/models.py?ds=sidebyside diff --git a/src/picture/models.py b/src/picture/models.py index 8ab5d2111..f496726a3 100644 --- a/src/picture/models.py +++ b/src/picture/models.py @@ -127,6 +127,9 @@ class Picture(models.Model): def author_str(self): return ", ".join(str(t) for t in self.tags.filter(category='author')) + def author_unicode(self): + return ", ".join(unicode(t) for t in self.tags.filter(category='author')) + @permalink def get_absolute_url(self): return 'picture.views.picture_detail', [self.slug]