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
commit4990c34c3f352368b4b30fb0f441ffb9352c5b96 (patch)
tree65aeca30bd4c57b7eb7431d5f7586bd8b985ca86 /ishtar_common/models.py
parent80093e0e188363f4e481085b91a9e7711cc4371c (diff)
downloadIshtar-4990c34c3f352368b4b30fb0f441ffb9352c5b96.tar.bz2
Ishtar-4990c34c3f352368b4b30fb0f441ffb9352c5b96.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")