Skip to content

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

Save smart_text of variant in OrderItem

Mira Szewczyk15fccb2dbd51
diff --git a/saleor/order/models.py b/saleor/order/models.py
index 70066f813b..dc8f7ebf74 100644
--- a/saleor/order/models.py
+++ b/saleor/order/models.py
@@ -262,7 +262,7 @@ class DeliveryGroup(models.Model, ItemSet):
product=product_variant.product,
quantity=quantity,
unit_price_net=price.net,
- product_name=product_variant.display_product(),
+ product_name=smart_text(product_variant),
product_sku=product_variant.sku,
unit_price_gross=price.gross,
stock=stock,