summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 047c08ffc..bbd9ff7e6 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -255,7 +255,7 @@ class BaseFind(BulkUpdatedItem, BaseHistorizedItem, OwnPerms):
CACHED_LABELS = ['cache_short_id', 'cache_complete_id']
PARENT_SEARCH_VECTORS = ['context_record']
BASE_SEARCH_VECTORS = ["label", "description", "comment", "cache_short_id",
- "cache_complete_id"]
+ "cache_complete_id", "excavation_id"]
class Meta:
verbose_name = _(u"Base find")
@@ -784,7 +784,9 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,
BASE_SEARCH_VECTORS = [
"cached_label", "label", "description", "container__location__name",
"container__reference", "mark", "comment", "dating_comment",
- "previous_id"]
+ "previous_id", "denomination", "museum_id", "decoration",
+ "manufacturing_place"
+ ]
M2M_SEARCH_VECTORS = [
"datings__period__label", "object_types__label", "integrities__label",
"remarkabilities__label", "material_types__label"]