diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-10-13 13:07:38 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:48 +0200 |
commit | abb1870fd12ec1f7ea0a7fd75d5dd33a03be3d5a (patch) | |
tree | 9031f7cbb546284f0550c8c1cd292e8833d94155 /archaeological_finds/models_finds.py | |
parent | de1e0fcef9b18c5df11e334f3565d20469887ec0 (diff) | |
download | Ishtar-abb1870fd12ec1f7ea0a7fd75d5dd33a03be3d5a.tar.bz2 Ishtar-abb1870fd12ec1f7ea0a7fd75d5dd33a03be3d5a.zip |
Find/context record search: change search order, terms, fix search field
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r-- | archaeological_finds/models_finds.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index aeb4aaf90..b909720eb 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1584,16 +1584,20 @@ class Find( "base_finds__context_record__operation__address__iexact", ), "base_finds__context_record__operation__in_charge": SearchAltName( - pgettext_lazy("key for text search", "person-in-charge"), + pgettext_lazy("key for text search", "in-charge"), "base_finds__context_record__operation__in_charge__cached_label__iexact", ), + "base_finds__context_record__operation__scientist": SearchAltName( + pgettext_lazy("key for text search", "scientist"), + "base_finds__context_record__operation__scientist__cached_label__iexact", + ), "base_finds__context_record__operation__operator": SearchAltName( pgettext_lazy("key for text search", "operator"), "base_finds__context_record__operation__operator__cached_label__iexact", ), "base_finds__context_record__operation__common_name": SearchAltName( pgettext_lazy("key for text search", "operation-name"), - "base_finds__context_record__operation__common_name__icontains", + "base_finds__context_record__operation__common_name__iexact", ), } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) |