mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-17 03:50:44 +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)
|
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):
|
def __getattr__(self, attr):
|
||||||
return getattr(self._root, attr)
|
return getattr(self._root, attr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user