summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r--archaeological_warehouse/models.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py
index 7ff85f276..0b578755f 100644
--- a/archaeological_warehouse/models.py
+++ b/archaeological_warehouse/models.py
@@ -30,7 +30,7 @@ from ishtar_common.data_importer import post_importer_action
from ishtar_common.models import Document, GeneralType, get_external_id, \
LightHistorizedItem, OwnPerms, Address, Person, post_save_cache, \
ImageModel, DashboardFormItem
-from ishtar_common.utils import cached_label_changed, TXT_SEARCH_COMMENT
+from ishtar_common.utils import cached_label_changed
class WarehouseType(GeneralType):
@@ -55,11 +55,11 @@ class Warehouse(Address, DashboardFormItem, OwnPerms):
# alternative names of fields for searches
ALT_NAMES = {
'name': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"name"),
+ pgettext_lazy("key for text search", u"name"),
'name__icontains'
),
'warehouse_type': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"type"),
+ pgettext_lazy("key for text search", u"type"),
'warehouse_type__label__iexact'
),
}
@@ -312,19 +312,19 @@ class Container(LightHistorizedItem, ImageModel):
# alternative names of fields for searches
ALT_NAMES = {
'location': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"location"),
+ pgettext_lazy("key for text search", u"location"),
'location__name__icontains'
),
'responsible': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"responsible-warehouse"),
+ pgettext_lazy("key for text search", u"responsible-warehouse"),
'responsible__name__icontains'
),
'container_type': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"type"),
+ pgettext_lazy("key for text search", u"type"),
'container_type__label__iexact'
),
'reference': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"reference"),
+ pgettext_lazy("key for text search", u"reference"),
'reference__icontains'
),
}