diff --git a/www/conservancy/apps/fundgoal/models.py b/www/conservancy/apps/fundgoal/models.py index 69020f6041db55cdf2477477e5980d7a0fc2ba0b..1ec83d65cd6ec5171dac0b355f402f5677984839 100644 --- a/www/conservancy/apps/fundgoal/models.py +++ b/www/conservancy/apps/fundgoal/models.py @@ -10,5 +10,8 @@ class FundraisingGoal(models.Model): def __unicode__(self): return self.fundraiser_code_name + def percentage_there(self): + return (fundraiser_so_far_amount / fundraiser_goal_amount ) * 100.00 + class Meta: ordering = ('fundraiser_code_name',)