summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-05 13:05:43 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 08:54:04 +0200
commita1378b8d0246848be2d7a29bb44b14a5cf97c689 (patch)
tree4a3c2e51dde8cc40fcffc7c8230e88f8b9e24c6a
parent993ee1b07466529c6daa1649cd38f72f0a170dc5 (diff)
downloadIshtar-a1378b8d0246848be2d7a29bb44b14a5cf97c689.tar.bz2
Ishtar-a1378b8d0246848be2d7a29bb44b14a5cf97c689.zip
Context record search: add town to search vector
-rw-r--r--archaeological_context_records/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index db65389f0..da488f773 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -331,7 +331,7 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem,
cached_label = models.TextField(_(u"Cached name"), null=True, blank=True,
db_index=True)
PARENT_SEARCH_VECTORS = ['operation']
- BASE_SEARCH_VECTORS = ["cached_label", "label", "location",
+ BASE_SEARCH_VECTORS = ["cached_label", "label", "location", "town__name",
"interpretation", "filling", "datings_comment",
"identification__label", "activity__label",
"excavation_technic__label"]