diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-26 23:55:44 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-26 23:55:44 +0200 |
commit | 1fc4bbbaeb62032a6a14d3353381d74f175eb342 (patch) | |
tree | 521a78f091de04ec15654218d7ec8aefd67bb0fa /archaeological_operations/models.py | |
parent | 54b86803f7a9e2c1013669d72212238cd74debe7 (diff) | |
download | Ishtar-1fc4bbbaeb62032a6a14d3353381d74f175eb342.tar.bz2 Ishtar-1fc4bbbaeb62032a6a14d3353381d74f175eb342.zip |
Change Person selection form - add a Person sheet (refs #425)
* change sheet creation to allow non historized object
* add related names corresponding to person for operation, files and
sources (through Author)
* use a jqGrid associated to a form to select persons
* create sheet templates for persons
* add appropriate urls
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 589d8d69e..6619bc72e 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -79,8 +79,9 @@ class Operation(BaseHistorizedItem, OwnPerms): excavation_end_date = models.DateField(_(u"Excavation end date"), null=True, blank=True) end_date = models.DateField(_(u"Closing date"), null=True, blank=True) - in_charge = models.ForeignKey(Person, related_name='+', null=True, - blank=True, verbose_name=_(u"In charge")) + in_charge = models.ForeignKey(Person, blank=True, null=True, + verbose_name=_(u"In charge"), + related_name='operation_responsability') year = models.IntegerField(_(u"Year"), null=True, blank=True) operation_code = models.IntegerField(_(u"Operation code"), null=True, blank=True) |