Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix getting attriburtes in line data
Krzysztof Wolski4a3d7dda8f07
diff --git a/saleor/cart/views.py b/saleor/cart/views.pyindex ffcb53d736..a02e700dd4 100644--- a/saleor/cart/views.py+++ b/saleor/cart/views.py@@ -105,7 +105,8 @@ def update(request, cart, variant_id):def summary(request, cart):def prepare_line_data(line):- attributes = line.variant.product.variant_attributes.all()+ attributes = \+ line.variant.product.product_class.variant_attributes.all()first_image = line.variant.get_first_image()price_per_item = line.get_price_per_item(discounts=request.discounts)line_total = line.get_total(discounts=request.discounts)