summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-06-10 18:47:17 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:21 +0100
commit8b7c617c7ac7f752646bd48f39da97dcfbaaaab2 (patch)
treec0a931af3e3be561d3779811e70eeaf2c995f332 /ishtar_common/models.py
parent6d030c2e804b5c8f73a6e6aa9510ea23afaeeaa3 (diff)
downloadIshtar-8b7c617c7ac7f752646bd48f39da97dcfbaaaab2.tar.bz2
Ishtar-8b7c617c7ac7f752646bd48f39da97dcfbaaaab2.zip
Documents: better form - improve select2 widget to manage new
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 2 insertions, 0 deletions
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']