X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9bd36df8dcbc93164ea61d0736c69b361a7ced3d..396d3bd5f45d384a1bfad490cefd3c2999e0685f:/src/picture/models.py?ds=inline

diff --git a/src/picture/models.py b/src/picture/models.py
index 8ab5d2111..5bc8d49d9 100644
--- a/src/picture/models.py
+++ b/src/picture/models.py
@@ -127,6 +127,12 @@ 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 self.tag_unicode('author')
+
     @permalink
     def get_absolute_url(self):
         return 'picture.views.picture_detail', [self.slug]