# Managers
objects = DossierManager()
+
+ def __unicode__(self):
+ return u'%s : %s %s' % (self.employe, self.poste1, self.complement1)
LIEN_PARENTE_CHOICES = (
('Conjoint', 'Conjoint'),
def __unicode__(self):
return u'%s (%s)' % (self.nom, self.type)
+ class Meta:
+ ordering = ['type', 'nom']
+
CONTRAT_CATEGORIE_CHOICES= (
('A', 'A'),
actif = models.BooleanField()
def __unicode__(self):
- return u'%s' % self.nom
+ return u'%s : %s' % (self.code, self.nom)
TYPE_CLASSEMENT_CHOICES = (
('S', 'S'),
implantation = models.ForeignKey('datamaster_modeles.Implantation', db_column='implantation')
#Méta
annee = models.IntegerField()
+
+ def get_devise_code(self):
+ code = ''
+ try:
+ taux = TauxChange.objects.get(implantation=self.implantation, annee=self.annee)
+ code = taux.devise.code
+ except TauxChange.DoesNotExist:
+ pass
+ return code
def __unicode__(self):
return u'%s (%s-%s)' % (self.valeur, self.implantation_id, self.annee)
actif = models.BooleanField()
def __unicode__(self):
- return u'%s - %s' % (self.categorie, self.nom)
+ return u'%s' % (self.nom)