X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..83519735375ead9517718073daa28557ec71bd27:/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]