From cc1fd1d806da5455cc9d4da5dc071d03a3bf2d5e Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 31 May 2016 07:47:18 +0200 Subject: [PATCH] fun with data types --- shop/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/models.py b/shop/models.py index e80bdb90..8735b1f2 100644 --- a/shop/models.py +++ b/shop/models.py @@ -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):