From 2c97a3a0a8b5337b44344811e26c6d745a038b7b Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Mon, 8 Sep 2025 14:12:35 +0500 Subject: [PATCH] remove trash code --- core/apps/orders/serializers/order.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/apps/orders/serializers/order.py b/core/apps/orders/serializers/order.py index 42c455f..735d60c 100644 --- a/core/apps/orders/serializers/order.py +++ b/core/apps/orders/serializers/order.py @@ -52,9 +52,6 @@ class OrderCreateSerializer(serializers.Serializer): quantity=item.get('quantity'), order=order, )) - if product.quantity_left > 0: - product.quantity_left -= item.get('quantity') - product.save() total_price += item['price'] send_orders_to_tg_bot.delay( chat_id=item.get('product').tg_id,