diff options
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 |
commit | 82fe118fde9524aa1cced20b5dc26a3abb3f040b (patch) | |
tree | c0a931af3e3be561d3779811e70eeaf2c995f332 /ishtar_common/models.py | |
parent | 649884364c945ac7fdde570d7f8291c3d37699a2 (diff) | |
download | Ishtar-82fe118fde9524aa1cced20b5dc26a3abb3f040b.tar.bz2 Ishtar-82fe118fde9524aa1cced20b5dc26a3abb3f040b.zip |
Documents: better form - improve select2 widget to manage new
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 2 |
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'] |