From 93ec6cf50bec2ecb4035850feb0003fec2d2138c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 13 Dec 2016 11:58:50 +0100 Subject: Treatment file: add applicant and applicant organisation --- archaeological_finds/models_treatments.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'archaeological_finds/models_treatments.py') 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, -- cgit v1.2.3