diff options
author | Cefin <kevon@tuta.io> | 2021-11-22 10:30:17 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:49 +0200 |
commit | 76f33567b2f49f993b28eb4f8881219b46f4d5c8 (patch) | |
tree | 5274633275f8ae8e0208c431cb3d79250ce5193f /archaeological_context_records/models.py | |
parent | bbb7eaf34aabcaed4492c673c79d08b96d94b5b6 (diff) | |
download | Ishtar-76f33567b2f49f993b28eb4f8881219b46f4d5c8.tar.bz2 Ishtar-76f33567b2f49f993b28eb4f8881219b46f4d5c8.zip |
add operation common name on UE search #5219
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 41a76b171..257e378ce 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -504,6 +504,9 @@ class ContextRecord( "operation__year": SearchAltName( pgettext_lazy("key for text search", "operation-year"), "operation__year" ), + "operation__common_name": SearchAltName( + pgettext_lazy("key fro text search", "operation-name"), "operation__common_name__icontains" + ), "operation__code_patriarche": SearchAltName( pgettext_lazy("key for text search", "patriarche"), "operation__code_patriarche__iexact", |