diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-07-03 19:29:27 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-13 18:26:03 +0200 |
commit | f63a275004e2cb37a24962915a04605f4fd2ce71 (patch) | |
tree | 808dc89ca069834f9b00b73d192dc200827c2c15 /archaeological_operations/models.py | |
parent | 81c1f3449d055ed43e760fb93028ca4b6e009749 (diff) | |
download | Ishtar-f63a275004e2cb37a24962915a04605f4fd2ce71.tar.bz2 Ishtar-f63a275004e2cb37a24962915a04605f4fd2ce71.zip |
Manage interger field search and many search (refs #4180)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 912351f9b..b1fa4fcd8 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -380,6 +380,11 @@ class Operation(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter, "key for text search (no accent, no spaces)", u"remain"), 'remains__pk' ), + 'year': ( + pgettext_lazy( + "key for text search (no accent, no spaces)", u"year"), + 'year' + ), } for v in ALT_NAMES.values(): EXTRA_REQUEST_KEYS[v[0]] = v[1] |