diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-07-04 11:43:34 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-13 18:26:03 +0200 |
commit | 493d366b3a69744a3089f17ffa172372fa391f29 (patch) | |
tree | 7c570daeb42e18b384f4069751935b507b0da767 /archaeological_operations/models.py | |
parent | f73c33804ce7d3c675be81d6bf8f2cc4ed2ebc55 (diff) | |
download | Ishtar-493d366b3a69744a3089f17ffa172372fa391f29.tar.bz2 Ishtar-493d366b3a69744a3089f17ffa172372fa391f29.zip |
Search: do not parse for parentheses inside quotes (refs #4180)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index b1fa4fcd8..2c51c262b 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -371,7 +371,7 @@ class Operation(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter, ), 'operation_type': ( pgettext_lazy( - "key for text search (no accent, no spaces)", u"operation-type" + "key for text search (no accent, no spaces)", u"type" ), 'operation_type__pk' ), @@ -385,6 +385,24 @@ class Operation(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter, "key for text search (no accent, no spaces)", u"year"), 'year' ), + 'operation_code': ( + pgettext_lazy( + "key for text search (no accent, no spaces)", u"operation-code" + ), + 'operation_code' + ), + 'code_patriarche': ( + pgettext_lazy( + "key for text search (no accent, no spaces)", u"patriarche" + ), + 'code_patriarche' + ), + 'towns': ( + pgettext_lazy( + "key for text search (no accent, no spaces)", u"town" + ), + 'towns__cached_label__iexact' + ), } for v in ALT_NAMES.values(): EXTRA_REQUEST_KEYS[v[0]] = v[1] |