Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add another test case, make code more consistent
Adam Janik0f88b580e00e
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex 1ef2a9987e..9c36d1b991 100644--- a/saleor/graphql/product/mutations/products.py+++ b/saleor/graphql/product/mutations/products.py@@ -42,8 +42,7 @@ def update_variants_names(instance, saved_attributes):'product__product_type__variant_attributes__values').all()attributes = instance.variant_attributes.all()for variant in variants_to_be_updated:- variant.name = get_name_from_attributes(- variant, attributes=attributes)+ variant.name = get_name_from_attributes(variant, attributes)variant.save()