one more Decimal() conversion

This commit is contained in:
Thomas Steen Rasmussen 2016-05-31 08:01:55 +02:00
parent e77a089dc2
commit 36293892d9

View file

@ -228,7 +228,7 @@ class OrderProductRelation(CreatedUpdatedModel):
@property
def total(self):
return self.product.price * self.quantity
return Decimal(self.product.price * self.quantity)
class EpayCallback(CreatedUpdatedModel, UUIDModel):
@ -275,6 +275,7 @@ class Invoice(CreatedUpdatedModel):
def regretdate(self):
return inv.created+timedelta(days=14)
class CoinifyAPIInvoice(CreatedUpdatedModel):
invoicejson = JSONField()
order = models.OneToOneField('shop.Order')