From 5ccf84ba54f02dc279e567ec7d25f0f020adc949 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Fri, 28 Oct 2011 15:54:05 -0400 Subject: [PATCH] =?utf8?q?[#2241]=20Ajout=C3=A9=20le=20mod=C3=A8le=20dae.Con?= =?utf8?q?trat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/dae/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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) + -- 1.7.10.4