diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-13 11:58:50 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-13 11:58:50 +0100 |
| commit | 93ec6cf50bec2ecb4035850feb0003fec2d2138c (patch) | |
| tree | 2c3507d130b20c859c27567a44563a84ef74eca4 /archaeological_finds/models_treatments.py | |
| parent | ddd5ad887467e6e8592471f19997c85aafe08773 (diff) | |
| download | Ishtar-93ec6cf50bec2ecb4035850feb0003fec2d2138c.tar.bz2 Ishtar-93ec6cf50bec2ecb4035850feb0003fec2d2138c.zip | |
Treatment file: add applicant and applicant organisation
Diffstat (limited to 'archaeological_finds/models_treatments.py')
| -rw-r--r-- | archaeological_finds/models_treatments.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index ec1ebf7a2..8de10c417 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -384,6 +384,14 @@ class TreatmentFile(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter): Person, related_name='treatmentfile_responsability', verbose_name=_(u"Person in charge"), on_delete=models.SET_NULL, blank=True, null=True) + applicant = models.ForeignKey( + Person, related_name='treatmentfile_applicant', + verbose_name=_(u"Applicant"), on_delete=models.SET_NULL, + blank=True, null=True) + applicant_organisation = models.ForeignKey( + Organization, related_name='treatmentfile_applicant', + verbose_name=_(u"Applicant organisation"), on_delete=models.SET_NULL, + blank=True, null=True) end_date = models.DateField(_(u"Closing date"), null=True, blank=True) creation_date = models.DateField( _(u"Creation date"), default=datetime.date.today, blank=True, |
