Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Set variant name in mutation
akjanik5cf320cc3ff6
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex bcb1f8569e..8acfa34403 100644--- a/saleor/graphql/product/mutations/products.py+++ b/saleor/graphql/product/mutations/products.py@@ -3,6 +3,8 @@ from django.template.defaultfilters import slugifyfrom graphene.types import InputObjectTypefrom graphql_jwt.decorators import permission_required+from graphene_file_upload import Upload+from ....product import modelsfrom ....product.utils.attributes import get_name_from_attributesfrom ...core.mutations import BaseMutation, ModelDeleteMutation, ModelMutation@@ -357,7 +359,6 @@ class ProductVariantCreate(ModelMutation):def user_is_allowed(cls, user, input):return user.has_perm('product.manage_products')-class ProductVariantUpdate(ProductVariantCreate):class Arguments:id = graphene.ID(