diff options
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] |