summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-22 12:46:24 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-22 12:46:24 +0100
commit7f1d9db82a29af007715eb786cc736277041704e (patch)
treede97ca38038965b23760ba2034c2327ccf23e671 /archaeological_context_records/models.py
parentb1c94c5f5949ba5514a95918187b223c78d4b986 (diff)
downloadIshtar-7f1d9db82a29af007715eb786cc736277041704e.tar.bz2
Ishtar-7f1d9db82a29af007715eb786cc736277041704e.zip
Manage cached_label for treatments - display full label in finds tables (refs #3395)
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 22ff3b095..7d399ecd9 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -129,7 +129,7 @@ class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms,
TABLE_COLS.insert(1, 'operation__code_patriarche')
TABLE_COLS_FOR_OPE = ['label', 'parcel', 'unit',
'datings__period', 'description']
- TABLE_COLS_FOR_OPE_LBL = {'section__parcel_number': _("Parcel")}
+ COL_LABELS = {'section__parcel_number': _("Parcel")}
CONTEXTUAL_TABLE_COLS = {
'full': {
'related_context_records': 'detailled_related_context_records'
@@ -405,7 +405,7 @@ class RecordRelations(GeneralRecordRelations, models.Model):
"relation_type",
"right_record__label", "right_record__unit", "right_record__parcel",
"right_record__datings__period", "right_record__description"]
- TABLE_COLS_LBL = {
+ COL_LABELS = {
"left_record__label": _(u"ID (left)"),
"left_record__unit": _(u"Unit (left)"),
"left_record__parcel": _(u"Parcel (left)"),