X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/08e687e53ba84afd39646185142e59c6bfe77783..84a3f7f335bf15b4671cc56c26d243bf539a9536:/src/picture/models.py

diff --git a/src/picture/models.py b/src/picture/models.py
index 5f5fe4c58..b9ddcae9b 100644
--- a/src/picture/models.py
+++ b/src/picture/models.py
@@ -136,6 +136,15 @@ class Picture(models.Model):
     def authors(self):
         return self.tags.filter(category='author')
 
+    def epochs(self):
+        return self.tags.filter(category='epoch')
+
+    def genres(self):
+        return self.tags.filter(category='genre')
+
+    def kinds(self):
+        return self.tags.filter(category='kind')
+
     def tag_unicode(self, category):
         relations = prefetched_relations(self, category)
         if relations: