self. was needed here.

This commit is contained in:
Bradley M. Kuhn 2015-03-08 21:24:09 -07:00
parent 027964192a
commit 637dd98a68

View file

@ -11,7 +11,7 @@ class FundraisingGoal(models.Model):
return self.fundraiser_code_name
def percentage_there(self):
return (fundraiser_so_far_amount / fundraiser_goal_amount ) * 100.00
return (self.fundraiser_so_far_amount / self.fundraiser_goal_amount ) * 100.00
class Meta:
ordering = ('fundraiser_code_name',)