From a77d68b9600c33b8a46d538b977276f66cdc4f2f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 12 Dec 2014 15:47:09 +0100 Subject: Add act object column to administrativ act tables (refs #2131) --- archaeological_operations/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index ffa585036..ab59d3f1c 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -491,12 +491,12 @@ class ActType(GeneralType): AdministrativeAct = None if FILES_AVAILABLE: class AdministrativeAct(BaseHistorizedItem, OwnPerms, ValueGetter): - TABLE_COLS = ['full_ref', 'year', 'index', 'act_type', 'signature_date', - 'associated_file', 'operation'] - TABLE_COLS_FILE = ['full_ref', 'year', 'index', 'act_type', 'associated_file', - 'associated_file.towns',] + TABLE_COLS = ['full_ref', 'year', 'index', 'act_type', 'act_object', + 'signature_date', 'associated_file', 'operation'] + TABLE_COLS_FILE = ['full_ref', 'year', 'index', 'act_type', 'act_object', + 'associated_file', 'associated_file.towns',] TABLE_COLS_OPE = ['full_ref', 'year', 'index', 'act_type', 'operation', - 'operation.towns'] + 'act_object', 'operation.towns'] act_type = models.ForeignKey(ActType, verbose_name=_(u"Act type")) in_charge = models.ForeignKey(Person, blank=True, null=True, related_name='adminact_operation_in_charge', -- cgit v1.2.3