fun with data types

This commit is contained in:
Thomas Steen Rasmussen 2016-05-31 07:47:18 +02:00
parent 3b7ae7c0b6
commit cc1fd1d806

View file

@ -80,7 +80,7 @@ class Order(CreatedUpdatedModel):
@property
def vat(self):
return Decimal(self.total*0.2)
return Decimal(self.total*Decimal(0.2))
@property
def total(self):