From 82bdd2a9ee556ccc6f90391a05aeb1aefd2d081f Mon Sep 17 00:00:00 2001 From: phzhik Date: Fri, 7 Jul 2023 01:52:36 +0400 Subject: [PATCH] * fixed float/decimal conversion --- store/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/models.py b/store/models.py index 92c297e..549cda9 100644 --- a/store/models.py +++ b/store/models.py @@ -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: