diff options
Diffstat (limited to 'archaeological_context_records/models.py')
| -rw-r--r-- | archaeological_context_records/models.py | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 04ca358e3..1ffdea2f3 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -159,9 +159,17 @@ class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms,          TABLE_COLS.insert(1, 'operation__code_patriarche')      TABLE_COLS_FOR_OPE = ['label', 'parcel', 'unit',                            'datings__period__label', 'description'] -    COL_LABELS = {'section__parcel_number': _(u"Parcel"), -                  'datings__period__label': _(u"Periods"), -                  'parcel__town__name': _(u"Town")} +    COL_LABELS = { +        'datings__period__label': _(u"Periods"), +        'datings__period': _(u"Datings (period)"), +        'detailled_related_context_records': _(u"Related context records"), +        'operation__code_patriarche': u"Operation (code patriarche)", +        'parcel__external_id': _(u"Parcel (external ID)"), +        'parcel__town__name': _(u"Parcel (town)"), +        'parcel__town': _(u"Parcel (town)"), +        'parcel__year': _(u"Parcel (year)"), +        'section__parcel_number': _(u"Parcel"), +    }      CONTEXTUAL_TABLE_COLS = {          'full': {              'related_context_records': 'detailled_related_context_records' @@ -188,14 +196,6 @@ class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms,      RELATIVE_SESSION_NAMES = [          ('operation', 'operation__pk'),          ('file', 'operation__associated_file__pk')] -    EXTRA_FULL_FIELDS_LABELS = { -        'parcel__town': _(u"Parcel (town)"), -        'detailled_related_context_records': _(u"Related context records"), -        'operation__code_patriarche': u"Operation (code patriarche)", -        'parcel__external_id': _(u"Parcel (external ID)"), -        'datings__period': _(u"Datings (period)"), -        'parcel__year': _(u"Parcel (year)"), -    }      # fields      external_id = models.TextField(_(u"External ID"), blank=True, null=True) | 
