From 19b24ff9be64ecbf60e784a6e1973129433b4a52 Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Mon, 29 Jan 2018 19:31:44 +0100 Subject: [PATCH] WIP add additional read-only information in main table (#21486) --- fargo/fargo/tables.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fargo/fargo/tables.py b/fargo/fargo/tables.py index 11ea936..300a338 100644 --- a/fargo/fargo/tables.py +++ b/fargo/fargo/tables.py @@ -12,8 +12,12 @@ class DocumentTable(tables.Table): orderable=False, verbose_name=_('size').title()) created = tables.DateTimeColumn(verbose_name=_('creation date').title()) + title = tables.Column(verbose_name=_('title').title()) + description = tables.Column(verbose_name=_('description').title()) + expiration_date = tables.DateTimeColumn(verbose_name=_('expiration date').title()) class Meta: model = models.Document - fields = ('filename', 'size', 'created') + fields = ('filename', 'size', 'created', 'title', 'description', + 'expiration_date') empty_text = _('You currently have no documents') -- 2.11.0