From 4990c34c3f352368b4b30fb0f441ffb9352c5b96 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 14 May 2018 21:32:22 +0200 Subject: Add new to authors field for m2m images --- ishtar_common/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') 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") -- cgit v1.2.3