* fixed float/decimal conversion

This commit is contained in:
Phil Zhitnikov 2023-07-07 01:52:36 +04:00
parent 3a8b7b07a7
commit 82bdd2a9ee

View File

@ -346,7 +346,7 @@ class Checklist(models.Model):
@property
def delivery_price_CN_RU(self) -> Decimal:
return getattr(self.category, 'delivery_price_CN_RU', 0.0)
return getattr(self.category, 'delivery_price_CN_RU', Decimal(0))
@property
def commission_rub(self) -> Decimal: