From b50a42f24390b118595f1eb9aa80b4b719f001e3 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Mon, 26 Oct 2015 12:40:22 +0100 Subject: [PATCH] Fix SponsorBenefit __str__ by using self.benefit.type instead of self.benefit_type --- symposion/sponsorship/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symposion/sponsorship/models.py b/symposion/sponsorship/models.py index 30a086ff..f21deb17 100644 --- a/symposion/sponsorship/models.py +++ b/symposion/sponsorship/models.py @@ -287,7 +287,7 @@ class SponsorBenefit(models.Model): verbose_name_plural = _("Sponsor benefits") def __str__(self): - return "%s - %s (%s)" % (self.sponsor, self.benefit, self.benefit_type) + return "%s - %s (%s)" % (self.sponsor, self.benefit, self.benefit.type) def save(self, *args, **kwargs): # Validate - save() doesn't clean your model by default, so call