projets
/
auf_rh_dae.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3563bc
)
[#2241] Ajouté le modèle dae.Contrat
author
Eric Mc Sween
<eric.mcsween@auf.org>
Fri, 28 Oct 2011 19:54:05 +0000
(15:54 -0400)
committer
Eric Mc Sween
<eric.mcsween@auf.org>
Fri, 28 Oct 2011 19:54:05 +0000
(15:54 -0400)
project/dae/models.py
patch
|
blob
|
blame
|
history
diff --git
a/project/dae/models.py
b/project/dae/models.py
index
9fca9cd
..
b5fb517
100644
(file)
--- 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)
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)
+