From 65142c984a2ccb71ea0586cee714d655f2388bea Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sun, 8 Mar 2015 21:27:13 -0700 Subject: [PATCH] Convert 100.00 to Decimal for operation. --- www/conservancy/apps/fundgoal/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/conservancy/apps/fundgoal/models.py b/www/conservancy/apps/fundgoal/models.py index 7272d5b5..758707f2 100644 --- a/www/conservancy/apps/fundgoal/models.py +++ b/www/conservancy/apps/fundgoal/models.py @@ -11,7 +11,7 @@ class FundraisingGoal(models.Model): return self.fundraiser_code_name def percentage_there(self): - return (self.fundraiser_so_far_amount / self.fundraiser_goal_amount ) * 100.00 + return (self.fundraiser_so_far_amount / self.fundraiser_goal_amount ) * Decimal('100.00') class Meta: ordering = ('fundraiser_code_name',)