summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-02-16 16:18:57 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-02-16 16:18:57 +0100
commit8e6bda683bbbbe98b82261cd5bd4bbad574904f8 (patch)
treec5bbdf49f595f89e1821527389131f31c959cdbb
parente6d0247d597e64ecf1afb18c68386111164f900b (diff)
downloadIshtar-8e6bda683bbbbe98b82261cd5bd4bbad574904f8.tar.bz2
Ishtar-8e6bda683bbbbe98b82261cd5bd4bbad574904f8.zip
Archaeological sites: improve full text index (refs #3913)
-rw-r--r--archaeological_operations/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 899ff0707..894f1c543 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -94,6 +94,7 @@ class ArchaeologicalSite(BaseHistorizedItem):
SLUG = 'site'
BASE_SEARCH_VECTORS = ["reference", "name"]
M2M_SEARCH_VECTORS = ["periods__name", "remains__name"]
+ PARENT_SEARCH_VECTORS = ['operations']
reference = models.CharField(_(u"Reference"), max_length=20, unique=True)
name = models.CharField(_(u"Name"), max_length=200,
null=True, blank=True)