mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 11:33:55 +03:00
Set all fields on input object types
This commit is contained in:
parent
71d5b1d943
commit
b5abccb1dc
|
@ -23,8 +23,8 @@ class InputObjectTypeContainer(dict, BaseType):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
dict.__init__(self, *args, **kwargs)
|
dict.__init__(self, *args, **kwargs)
|
||||||
for key, value in self.items():
|
for key in self._meta.fields.keys():
|
||||||
setattr(self, key, value)
|
setattr(self, key, self.get(key, None))
|
||||||
|
|
||||||
def __init_subclass__(cls, *args, **kwargs):
|
def __init_subclass__(cls, *args, **kwargs):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user