summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-12-12 15:47:09 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2014-12-12 15:47:09 +0100
commit8baf507270946930fba9152793c6991d72b2f2fd (patch)
tree2edb2323c84aeafa950ec8787f9f796fd96087d8
parentfdfc5317c1c78c1a841bca854619ce565c1de920 (diff)
downloadIshtar-8baf507270946930fba9152793c6991d72b2f2fd.tar.bz2
Ishtar-8baf507270946930fba9152793c6991d72b2f2fd.zip
Add act object column to administrativ act tables (refs #2131)
-rw-r--r--archaeological_operations/models.py10
1 files 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',