Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change error field name when nested field throw an error
Pacu24c81574770a4
diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.pyindex 8a1e07751e..9f016b84d1 100644--- a/saleor/graphql/product/mutations/attributes.py+++ b/saleor/graphql/product/mutations/attributes.py@@ -68,7 +68,7 @@ class AttributeCreate(ModelMutation):if field == 'attribute':continuefor message in validation_errors.message_dict[field]:- error_field = 'values-%(field)s' % {'field': field}+ error_field = 'values:%(field)s' % {'field': field}cls.add_error(errors, error_field, message)return cleaned_input