From fc1521b2f099f894a4681aa736d4fc98f6f6de5f Mon Sep 17 00:00:00 2001 From: Mardanov Timur Rustemovich Date: Mon, 19 Nov 2018 22:51:24 +0300 Subject: [PATCH] fixed is_typ_of --- graphene_django/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/types.py b/graphene_django/types.py index d9833cd..e306fd1 100644 --- a/graphene_django/types.py +++ b/graphene_django/types.py @@ -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):