From c632d05a106014f92ca588e47ad9f42fdbb225d2 Mon Sep 17 00:00:00 2001 From: ariel1899 Date: Fri, 17 Apr 2020 14:54:18 -0400 Subject: [PATCH] Change --- graphene_django/forms/mutation.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/graphene_django/forms/mutation.py b/graphene_django/forms/mutation.py index 440b1af..7959987 100644 --- a/graphene_django/forms/mutation.py +++ b/graphene_django/forms/mutation.py @@ -45,13 +45,7 @@ class BaseDjangoFormMutation(ClientIDMutation): if form.is_valid(): return cls.perform_mutate(form, info) else: - errors = [ - ErrorType( - field=to_camel_case(key) if key != "__all__" else key, - messages=value, - ) - for key, value in form.errors.items() - ] + errors = ErrorType.from_errors(form.errors) return cls(errors=errors, **form.data)