fundgoal: Remove unnecessary import.

This commit is contained in:
Brett Smith 2018-11-18 14:07:37 -05:00
parent 621ace8488
commit 2461bc19b1

View file

@ -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',)