diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-11-17 18:44:17 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-11-17 18:44:17 +0100 |
commit | 73450fd64ccebe7a085c939bdc81ad7597d7b4ea (patch) | |
tree | 770c3fc40ac68c70efaa8bd2c155cdf3ced1761d /archaeological_finds | |
parent | 08f5680610562ea92c6bd8f9476f047fa3ee8c57 (diff) | |
download | Ishtar-73450fd64ccebe7a085c939bdc81ad7597d7b4ea.tar.bz2 Ishtar-73450fd64ccebe7a085c939bdc81ad7597d7b4ea.zip |
Full CSV export: extra non auto columns - allow method to be called
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
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, |