Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Save variant name in order item along with attributes
Miraa3031063d9f0
diff --git a/saleor/order/models.py b/saleor/order/models.pyindex dc8f7ebf74..039fd09ac9 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -21,6 +21,7 @@ from satchless.item import ItemLine, ItemSetfrom ..core.utils import build_absolute_urifrom ..discount.models import Voucherfrom ..product.models import Product, Stock+from ..product.utils import display_variant_with_attributesfrom ..userprofile.models import Addressfrom ..search import indexfrom . import Status@@ -262,7 +263,7 @@ class DeliveryGroup(models.Model, ItemSet):product=product_variant.product,quantity=quantity,unit_price_net=price.net,- product_name=smart_text(product_variant),+ product_name=display_variant_with_attributes(product_variant),product_sku=product_variant.sku,unit_price_gross=price.gross,stock=stock,