From 1aa7193ce1c114da66cf2214964f32bce5afa3e1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 17 Nov 2015 18:44:17 +0100 Subject: Full CSV export: extra non auto columns - allow method to be called --- archaeological_finds/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index 1e107a4e0..c21c56a43 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -244,6 +244,9 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem): TABLE_COLS_FOR_OPE_LBL = { 'code_patriarche__index': _("Short Id"), 'code_patriarche__code__label__index': _("Complete ID")} + EXTRA_FULL_FIELDS = ['base_finds.short_id', 'base_finds.complete_id'] + EXTRA_FULL_FIELDS_LABELS = {'base_finds.short_id': _(u"Short Id"), + 'base_finds.complete_id': _("Complete ID")} base_finds = models.ManyToManyField(BaseFind, verbose_name=_(u"Base find"), related_name='find') external_id = models.CharField(_(u"External ID"), blank=True, null=True, -- cgit v1.2.3