From 6570be7b20544d063124a13262a6f094efeffefb Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Wed, 12 Nov 2025 16:01:28 +0330 Subject: [PATCH] bugfix --- apps/promotions/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/promotions/models.py b/apps/promotions/models.py index b1176fa..905d6be 100644 --- a/apps/promotions/models.py +++ b/apps/promotions/models.py @@ -190,7 +190,7 @@ class Recipient(BaseModel): else: raise NotImplementedError() - base_amount = obj.data.get(key) + base_amount = int(obj.data.get(key)) except Exception as e: try: base_amount = int(self.base_amount_field) # todo: to float