summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
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']