Skip to content

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

Fix sending order confirmation email call

akjanikfbbf801249e1
diff --git a/saleor/checkout/views/summary.py b/saleor/checkout/views/summary.py
index d68e5ba429..0e450cb09f 100644
--- a/saleor/checkout/views/summary.py
+++ b/saleor/checkout/views/summary.py
@@ -28,7 +28,7 @@ def create_order(checkout):
order.history.create(
user=user, content=pgettext_lazy(
'Order status history entry', 'Order was placed'))
- send_order_confirmation.delay(order)
+ send_order_confirmation.delay(order.pk)
return order, redirect('order:payment', token=order.token)