diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-12 15:36:29 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-12 15:36:29 +0200 |
commit | 88f2d0dc710674aa5017271b1d558a1da2ecdd1e (patch) | |
tree | e536f9e5d3f8fd59e68b26e3c8166f5ec55674d9 /archaeological_finds | |
parent | 74ede4d3b306ac49052ee1a91737068f5da7a89b (diff) | |
download | Ishtar-88f2d0dc710674aa5017271b1d558a1da2ecdd1e.tar.bz2 Ishtar-88f2d0dc710674aa5017271b1d558a1da2ecdd1e.zip |
basic vector search parameters (refs #2912)
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 966dd1065..96c21e79e 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -239,6 +239,9 @@ class BaseFind(BulkUpdatedItem, BaseHistorizedItem, OwnPerms): history = HistoricalRecords() RELATED_POST_PROCESS = ['find'] CACHED_LABELS = ['cache_short_id', 'cache_complete_id'] + PARENT_SEARCH_VECTORS = ['context_record'] + BASE_SEARCH_VECTORS = ["cached_label", "label", "description", + "comment", "cache_short_id", "cache_complete_id"] class Meta: verbose_name = _(u"Base find") @@ -752,6 +755,14 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, db_index=True) history = HistoricalRecords() BASKET_MODEL = FindBasket + PARENT_SEARCH_VECTORS = ['base_finds'] + BASE_SEARCH_VECTORS = [ + "cached_label", "label", "description", "container__location__name", + "container__reference", "mark", "comment", "dating_comment", + "previous_id"] + M2M_SEARCH_VECTORS = [ + "datings__period__label", "object_types__label", "integrities__label", + "remarkabilities__label", "material_types__label"] class Meta: verbose_name = _(u"Find") |