@@ -20,7 +20,7 @@ class Profile(models.Model):
def adhesion(self): # user adhesion
ctype = ContentType.objects.get_for_model(User)
try:
- return Adhesion.objects.get(adherent_type=ctype, adherent_id=self.pk)
+ return Adhesion.objects.get(adherent_type=ctype, adherent_id=self.user.pk)
except Adhesion.DoesNotExist:
return None