fixed is_typ_of

This commit is contained in:
Mardanov Timur Rustemovich 2018-11-19 22:51:24 +03:00
parent 65ab452045
commit fc1521b2f0

View File

@ -126,7 +126,7 @@ class DjangoObjectType(ObjectType):
return True
if not is_valid_neomodel_model(type(root)):
raise Exception(('Received incompatible instance "{}".').format(root))
return root == cls._meta.model
return root.__class__ == cls._meta.model
@classmethod
def get_node(cls, info, id):