Convert 100.00 to Decimal for operation.
This commit is contained in:
		
							parent
							
								
									637dd98a68
								
							
						
					
					
						commit
						65142c984a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -11,7 +11,7 @@ class FundraisingGoal(models.Model): | ||||||
|         return self.fundraiser_code_name |         return self.fundraiser_code_name | ||||||
| 
 | 
 | ||||||
|     def percentage_there(self): |     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: |     class Meta: | ||||||
|         ordering = ('fundraiser_code_name',) |         ordering = ('fundraiser_code_name',) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn