From 8c6269cc16991f5d99ea88ced6a39c9a9836e4a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Larchev=C3=AAque?= Date: Tue, 9 Aug 2011 16:44:40 -0400 Subject: [PATCH] fix related_name --- project/rh/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/rh/models.py b/project/rh/models.py index 6cbca36..53ebbc2 100644 --- a/project/rh/models.py +++ b/project/rh/models.py @@ -539,7 +539,7 @@ class DossierComparaison(models.Model): Photo d'une comparaison salariale au moment de l'embauche. """ dossier = models.ForeignKey('Dossier', related_name='comparaisons') - implantation = models.ForeignKey(ref.Implantation, null=True, blank=True) + implantation = models.ForeignKey(ref.Implantation, related_name="+", null=True, blank=True) poste = models.CharField(max_length=255, null=True, blank=True) personne = models.CharField(max_length=255, null=True, blank=True) montant = models.IntegerField(null=True) -- 1.7.10.4