This commit is contained in:
Mardanov Timur Rustemovich 2018-11-29 17:42:21 +03:00
parent 57e3e86eb1
commit 0ff35cdd29

View File

@ -9,7 +9,7 @@ from neomodel import (
# from graphene.utils import LazyList
def is_parent_set(info):
if hasattr(info.parent_type._meta.graphene_type, 'know_parent_fields'):
if hasattr(info.parent_type.graphene_type._meta, 'know_parent_fields'):
options = info.parent_type.graphene_type._meta.know_parent_fields
assert isinstance(options, (list, tuple)), \
"know_parent_fields should be list or tuple"