From 82fe118fde9524aa1cced20b5dc26a3abb3f040b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 10 Jun 2020 18:47:17 +0200 Subject: Documents: better form - improve select2 widget to manage new --- ishtar_common/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 58385c1dc..6364f69e8 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -5327,6 +5327,7 @@ class LicenseType(GeneralType): class DocumentTag(GeneralType): + SLUG = "documenttag" class Meta: verbose_name = _("Document tag") verbose_name_plural = _("Document tags") @@ -5384,6 +5385,7 @@ class Document(BaseHistorizedItem, QRCodeItem, OwnPerms, ImageModel, SearchVectorConfig("additional_information", "local"), ] PARENT_SEARCH_VECTORS = ['authors', ] + M2M_SEARCH_VECTORS = [SearchVectorConfig("tags__label"), ] BOOL_FIELDS = ['duplicate'] -- cgit v1.2.3