mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-15 14:42:06 +03:00
Change
This commit is contained in:
parent
4120971d11
commit
c632d05a10
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user