Merge pull request #116 from hivernales/fix-sponsorbenefit-str

Fix SponsorBenefit __str__
This commit is contained in:
Patrick Altman 2015-10-26 08:02:57 -05:00
commit f997e0761a

View file

@ -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