From: davin baragiotta Date: Wed, 27 Apr 2011 20:15:44 +0000 (-0400) Subject: modeles responsable implantation X-Git-Tag: DAE~156 X-Git-Url: http://git.auf.org/?p=auf_rh_dae.git;a=commitdiff_plain;h=30be56d56a52b336f5b33ca982c39e328bca7f8b modeles responsable implantation --- diff --git a/project/rh/models.py b/project/rh/models.py index 644e1a6..5aedeff 100644 --- a/project/rh/models.py +++ b/project/rh/models.py @@ -573,3 +573,16 @@ class TypeContrat(models.Model): def __unicode__(self): return u'%s' % (self.nom) + +class ResponsableImplantation(models.Model): + """Le responsable d'une implantation. + Anciennement géré sur le Dossier du responsable. + """ + employe = models.ForeignKey('Employe', null=True, blank=True) + implantation = models.ForeignKey(ref.Implantation, unique=True) + + def __unicode__(self): + return u'%s : %s' % (self.implantation, self.employe) + + class Meta: + ordering = ['implantation__nom']