Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix comment formatting

Anna Siwikda5d70c05b07
diff --git a/saleor/order/utils.py b/saleor/order/utils.py
index 6b02847579..dc18af8575 100644
--- a/saleor/order/utils.py
+++ b/saleor/order/utils.py
@@ -99,7 +99,8 @@ def add_variant_to_delivery_group(
stock=stock,
stock_location=stock.location.name)
Stock.objects.allocate_stock(stock, quantity)
- stock.refresh_from_db() # refresh stock for accessing quantity_allocated
+ # refresh stock for accessing quantity_allocated
+ stock.refresh_from_db()
quantity_left -= quantity