summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
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
commit0ddd8bd878d7a13f8ab8159b0f95d1d49c415fc3 (patch)
tree808dc89ca069834f9b00b73d192dc200827c2c15 /archaeological_operations/models.py
parent6e443ef21bfa9eea67e7f983727c41d00405a816 (diff)
downloadIshtar-0ddd8bd878d7a13f8ab8159b0f95d1d49c415fc3.tar.bz2
Ishtar-0ddd8bd878d7a13f8ab8159b0f95d1d49c415fc3.zip
Manage interger field search and many search (refs #4180)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py5
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]