fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix findable
[wolnelektury.git]
/
src
/
picture
/
models.py
diff --git
a/src/picture/models.py
b/src/picture/models.py
index
5f5fe4c
..
b9ddcae
100644
(file)
--- 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 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:
def tag_unicode(self, category):
relations = prefetched_relations(self, category)
if relations: