From 2461bc19b17cdb3118b8997f9b81dbef103c976c 2018-11-18 19:39:18 From: Brett Smith Date: 2018-11-18 19:39:18 Subject: [PATCH] fundgoal: Remove unnecessary import. --- diff --git a/www/conservancy/apps/fundgoal/models.py b/www/conservancy/apps/fundgoal/models.py index 46d5f26e0ef5f9362656e987d3a092528de616b7..8eb2b10d68b740174e5d8a2e904f0bf159f3edf8 100644 --- a/www/conservancy/apps/fundgoal/models.py +++ b/www/conservancy/apps/fundgoal/models.py @@ -1,5 +1,4 @@ from django.db import models -from decimal import * class FundraisingGoal(models.Model): """Conservancy fundraiser Goal""" @@ -14,7 +13,7 @@ class FundraisingGoal(models.Model): return self.fundraiser_code_name def percentage_there(self): - return (self.fundraiser_so_far_amount / self.fundraiser_goal_amount ) * Decimal('100.00') + return (self.fundraiser_so_far_amount / self.fundraiser_goal_amount ) * 100 class Meta: ordering = ('fundraiser_code_name',)