summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 9162a8aa0..a8517ed26 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -304,6 +304,12 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem,
polygon = models.PolygonField(_(u"Polygon"), blank=True, null=True)
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",
+ "interpretation", "filling", "datings_comment",
+ "identification__label", "activity__label",
+ "excavation_technic__label"]
+ M2M_SEARCH_VECTORS = ["datings__period__label"]
history = HistoricalRecords()
class Meta: