summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py63
1 files changed, 31 insertions, 32 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 465d57f3a..889138c7f 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -30,8 +30,7 @@ from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import ugettext_lazy as _, pgettext_lazy
from ishtar_common.data_importer import post_importer_action, ImporterError
-from ishtar_common.utils import cached_label_changed, post_save_point, \
- TXT_SEARCH_COMMENT
+from ishtar_common.utils import cached_label_changed, post_save_point
from ishtar_common.models import Document, GeneralType, \
HierarchicalType, BaseHistorizedItem, ShortMenuItem, LightHistorizedItem, \
@@ -716,126 +715,126 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms,
# alternative names of fields for searches
ALT_NAMES = {
'base_finds__cache_short_id': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"short-id"),
+ pgettext_lazy("key for text search", u"short-id"),
'base_finds__cache_short_id__contains'
),
'base_finds__cache_complete_id': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"complete-id"),
+ pgettext_lazy("key for text search", u"complete-id"),
'base_finds__cache_complete_id__icontains'
),
'label': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"free-id"),
+ pgettext_lazy("key for text search", u"free-id"),
'label__icontains'
),
'denomination': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"denomination"),
+ pgettext_lazy("key for text search", u"denomination"),
'denomination__icontains'
),
'base_finds__context_record__town': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"town"),
+ pgettext_lazy("key for text search", u"town"),
'base_finds__context_record__town__cached_label__iexact'
),
'base_finds__context_record__operation__year': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"year"),
+ pgettext_lazy("key for text search", u"year"),
'base_finds__context_record__operation__year'
),
'base_finds__context_record__operation__operation_code': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"operation-code"),
+ pgettext_lazy("key for text search", u"operation-code"),
'base_finds__context_record__operation__operation_code'
),
'base_finds__context_record__operation__code_patriarche': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"code-patriarche"),
+ pgettext_lazy("key for text search", u"code-patriarche"),
'base_finds__context_record__operation__code_patriarche'
),
'base_finds__context_record__operation__operation_type': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"operation-type"),
+ pgettext_lazy("key for text search", u"operation-type"),
'base_finds__context_record__operation__operation_type'
'__label__iexact'
),
'base_finds__context_record__town__areas': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"area"),
+ pgettext_lazy("key for text search", u"area"),
'base_finds__context_record__town__areas__label__iexact',
),
'archaeological_sites': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"site"),
+ pgettext_lazy("key for text search", u"site"),
'base_finds__context_record__operation__archaeological_sites__'
'cached_label__icontains',
),
'archaeological_sites_context_record': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"context-record-site"),
+ pgettext_lazy("key for text search", u"context-record-site"),
'base_finds__context_record__archaeological_site__'
'cached_label__icontains',
),
'base_finds__context_record': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"context-record"),
+ pgettext_lazy("key for text search", u"context-record"),
'base_finds__context_record__cached_label__icontains',
),
'ope_relation_types': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"operation-relation-type"),
+ pgettext_lazy("key for text search", u"operation-relation-type"),
'ope_relation_types'
),
'cr_relation_types': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"context-record-relation-type"),
+ pgettext_lazy("key for text search", u"context-record-relation-type"),
'cr_relation_types'
),
'datings__period': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"period"),
+ pgettext_lazy("key for text search", u"period"),
'datings__period__label__iexact',
),
'material_types': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"material"),
+ pgettext_lazy("key for text search", u"material"),
'material_types__label__iexact',
),
'object_types': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"object-type"),
+ pgettext_lazy("key for text search", u"object-type"),
'object_types__label__iexact',
),
'preservation_to_considers': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"preservation"),
+ pgettext_lazy("key for text search", u"preservation"),
'preservation_to_considers__label__iexact',
),
'conservatory_state': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"conservatory"),
+ pgettext_lazy("key for text search", u"conservatory"),
'conservatory_state__label__iexact',
),
'integrities': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"integrity"),
+ pgettext_lazy("key for text search", u"integrity"),
'integrities__label__iexact',
),
'remarkabilities': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"remarkability"),
+ pgettext_lazy("key for text search", u"remarkability"),
'remarkabilities__label__iexact',
),
'base_finds__find__description': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"description"),
+ pgettext_lazy("key for text search", u"description"),
'base_finds__find__description__icontains',
),
'base_finds__batch': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"batch"),
+ pgettext_lazy("key for text search", u"batch"),
'base_finds__batch__label__iexact',
),
'checked_type': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"checked"),
+ pgettext_lazy("key for text search", u"checked"),
'checked_type__label__iexact',
),
'documents__image__isnull': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"has-image"),
+ pgettext_lazy("key for text search", u"has-image"),
'documents__image__isnull',
),
'container__location': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"location"),
+ pgettext_lazy("key for text search", u"location"),
'container__location__name__iexact',
),
'container__responsible': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"warehouse"),
+ pgettext_lazy("key for text search", u"warehouse"),
'container__responsible__name__iexact',
),
'container__index': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"container-index"),
+ pgettext_lazy("key for text search", u"container-index"),
'container__index',
),
'container__reference': (
- pgettext_lazy(TXT_SEARCH_COMMENT, u"container-ref"),
+ pgettext_lazy("key for text search", u"container-ref"),
'container__reference__iexact',
),
}