diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-11-14 19:43:27 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-11-14 19:43:27 +0100 | 
| commit | e4c0173adc1250fe608f477bb80cbdc5bddc3885 (patch) | |
| tree | 7464bd027f0921b8811f7a15337a5bce099b8211 /archaeological_operations/models.py | |
| parent | 04fed929817936981dc3031379a4e8fbd13fb8f4 (diff) | |
| download | Ishtar-e4c0173adc1250fe608f477bb80cbdc5bddc3885.tar.bz2 Ishtar-e4c0173adc1250fe608f477bb80cbdc5bddc3885.zip | |
Explicit CSV headers (refs #3340)
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 22 | 
1 files changed, 22 insertions, 0 deletions
| diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 14e5e1f7e..1e108e98c 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -225,6 +225,28 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,          'finds_deadline_before': 'finds_deadline__lte',          'finds_deadline_after': 'finds_deadline__gte',      } +    EXTRA_FULL_FIELDS_LABELS = { +        'full_code_patriarche': u"Code patriarche", +        'year_index': _(u"Year - Index"), +        'associated_file_short_label': _(u"Associated file (label)"), +        'operator__name': _(u"Operator name"), +        'scientist__raw_name': _(u"Scientist (full name)"), +        'associated_file__external_id': _(u"Associated file (external ID)"), +        'scientist__title': _(u"Scientist (title)"), +        'scientist__surname': _(u"Scientist (surname)"), +        'scientist__name': _(u"Scientist (name)"), +        'scientist__attached_to__name': _(u"Scientist - Organization (name)"), +        'in_charge__title': _(u"In charge (title)"), +        'in_charge__surname': _(u"In charge (surname)"), +        'in_charge__name': _(u"In charge (name)"), +        'in_charge__attached_to__name': _(u"In charge - Organization (name)"), +        'cira_rapporteur__surname': u"Rapporteur CIRA (prénom)", +        'cira_rapporteur__name': u"Rapporteur CIRA (nom)", +        'cira_rapporteur__attached_to__name': u"Rapporteur CIRA - " +                                              u"Organisation (nom)", +        'archaeological_sites__reference': _(u"Archaeological sites (" +                                             u"reference)"), +    }      # fields definition      creation_date = models.DateField(_(u"Creation date"), | 
