summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-05-14 21:32:22 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 08:44:34 +0200
commit0adadd4d3f40ee313e392886fab1080e1bee4f92 (patch)
tree65aeca30bd4c57b7eb7431d5f7586bd8b985ca86 /ishtar_common/models.py
parent083985d6f383157b84e528701ba4be7cbd898fe3 (diff)
downloadIshtar-0adadd4d3f40ee313e392886fab1080e1bee4f92.tar.bz2
Ishtar-0adadd4d3f40ee313e392886fab1080e1bee4f92.zip
Add new to authors field for m2m images
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 53f4e1c11..ab70faaa0 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2904,10 +2904,12 @@ post_delete.connect(post_save_cache, sender=AuthorType)
class Author(FullSearch):
+ PARENT_SEARCH_VECTORS = ['person']
+ SLUG = "author"
+
person = models.ForeignKey(Person, verbose_name=_(u"Person"),
related_name='author')
author_type = models.ForeignKey(AuthorType, verbose_name=_(u"Author type"))
- PARENT_SEARCH_VECTORS = ['person']
class Meta:
verbose_name = _(u"Author")