Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove errors/accountErrors that are defined in a parent class
Marcin Gębalaeaac0e7cac12
diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.pyindex 1949d27d4c..c1e9a35244 100644--- a/saleor/graphql/account/mutations/base.py+++ b/saleor/graphql/account/mutations/base.py@@ -45,13 +45,6 @@ def can_edit_address(user, address):class SetPassword(CreateToken):- user = graphene.Field(User, description="A user instance with new password.")- account_errors = graphene.List(- graphene.NonNull(AccountError),- description="List of errors that occurred executing the mutation.",- required=True,- )-class Arguments:token = graphene.String(description="A one-time token required to set the password.", required=Truediff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.pyindex 7b5a1df629..7905e91cb6 100644--- a/saleor/graphql/core/mutations.py+++ b/saleor/graphql/core/mutations.py@@ -18,9 +18,9 @@ from graphql_jwt.exceptions import JSONWebTokenError, PermissionDeniedfrom ...account import modelsfrom ..account.types import User-from .types.common import AccountErrorfrom ..utils import get_nodesfrom .types import Error, Upload+from .types.common import AccountErrorfrom .utils import from_global_id_strict_type, snake_to_camel_casefrom .utils.error_codes import get_error_code_from_error@@ -594,7 +594,7 @@ class CreateToken(ObtainJSONWebToken):description="List of errors that occurred executing the mutation.",required=True,)- user = graphene.Field(User)+ user = graphene.Field(User, description="A user instance.")@classmethoddef mutate(cls, root, info, **kwargs):