Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix dict unpacking for Python 3.4

Marcin Gębalad24ec8c60a0d
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py
index b27f30f830..bbfe3e0cf3 100644
--- a/saleor/graphql/core/mutations.py
+++ b/saleor/graphql/core/mutations.py
@@ -195,7 +195,7 @@ class ModelMutation(BaseMutation):
@classmethod
def success_response(cls, instance):
"""Return a success response."""
- return cls(**{cls._meta.return_field_name: instance}, errors=[])
+ return cls(**{cls._meta.return_field_name: instance, 'errors': []})
@classmethod
def mutate(cls, root, info, **data):