From: Eric Mc Sween Date: Fri, 28 Oct 2011 19:54:05 +0000 (-0400) Subject: [#2241] Ajouté le modèle dae.Contrat X-Git-Tag: DAE~44 X-Git-Url: https://git.auf.org/?p=auf_rh_dae.git;a=commitdiff_plain;h=5ccf84ba54f02dc279e567ec7d25f0f020adc949 [#2241] Ajouté le modèle dae.Contrat --- diff --git a/project/dae/models.py b/project/dae/models.py index 9fca9cd..b5fb517 100644 --- a/project/dae/models.py +++ b/project/dae/models.py @@ -753,3 +753,12 @@ class Remuneration(models.Model): def montant_euro_mois(self): return round(self.montant_euro() / 12, 2) + + +### CONTRATS + +class Contrat(models.Model): + dossier = models.ForeignKey(Dossier) + type = models.ForeignKey(rh.TypeContrat, related_name='+') + fichier = models.FileField(upload_to='dae/contrats', storage=UPLOAD_STORAGE) +