mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +03:00
Fixed instance getter using _root.
This commit is contained in:
parent
d6a5269f0b
commit
0d4164648f
|
@ -49,6 +49,14 @@ class InstanceObjectType(BaseObjectType):
|
|||
))
|
||||
super(InstanceObjectType, self).__init__(_root=_root)
|
||||
|
||||
@property
|
||||
def instance(self):
|
||||
return self._root
|
||||
|
||||
@instance.setter
|
||||
def instance(self, value):
|
||||
self._root = value
|
||||
|
||||
def __getattr__(self, attr):
|
||||
return getattr(self._root, attr)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user