THANKS has null target

pull/1/head
eric 2014-01-30 11:59:17 -05:00
parent 3bfbbd7653
commit 25d9923337
1 changed files with 2 additions and 0 deletions

View File

@ -868,6 +868,8 @@ class Campaign(models.Model):
return ''
def percent_of_goal(self):
if self.type == THANKS:
return 100
percent = 0
if(self.status == 'SUCCESSFUL' or self.status == 'ACTIVE'):
if self.type == BUY2UNGLUE: