remove trash code
This commit is contained in:
@@ -52,9 +52,6 @@ class OrderCreateSerializer(serializers.Serializer):
|
|||||||
quantity=item.get('quantity'),
|
quantity=item.get('quantity'),
|
||||||
order=order,
|
order=order,
|
||||||
))
|
))
|
||||||
if product.quantity_left > 0:
|
|
||||||
product.quantity_left -= item.get('quantity')
|
|
||||||
product.save()
|
|
||||||
total_price += item['price']
|
total_price += item['price']
|
||||||
send_orders_to_tg_bot.delay(
|
send_orders_to_tg_bot.delay(
|
||||||
chat_id=item.get('product').tg_id,
|
chat_id=item.get('product').tg_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user