mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-25 11:23:45 +03:00
Merge pull request #18 from revolico/camel-case-all-fields#17
Verify ALL_FIELDS after camel case
This commit is contained in:
commit
f076cb473e
|
@ -1,6 +1,6 @@
|
|||
# from django import forms
|
||||
from collections import OrderedDict
|
||||
|
||||
from django.forms import ALL_FIELDS
|
||||
import graphene
|
||||
from graphene import Field, InputField
|
||||
from graphene.relay.mutation import ClientIDMutation
|
||||
|
@ -47,7 +47,7 @@ class BaseDjangoFormMutation(ClientIDMutation):
|
|||
return cls.perform_mutate(form, info)
|
||||
else:
|
||||
errors = [
|
||||
ErrorType(field=to_camel_case(key), messages=value)
|
||||
ErrorType(field=to_camel_case(key) if key != ALL_FIELDS else key, messages=value)
|
||||
for key, value in form.errors.items()
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user