From 8459f7bcc8f4e44dd6ac9cf694aaa949fac9d024 Mon Sep 17 00:00:00 2001 From: Mardanov Timur Rustemovich Date: Tue, 15 Jan 2019 18:13:18 +0300 Subject: [PATCH] fixed define root class --- 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 aa9df9a..374d270 100644 --- a/graphene_django/types.py +++ b/graphene_django/types.py @@ -133,7 +133,7 @@ class DjangoObjectType(ObjectType): return True if not is_valid_neomodel_model(type(root)): raise Exception(('Received incompatible instance "{}".').format(root)) - return root.__class__ == cls._meta.model + return isinstance(root.__class__, cls._meta.model) @classmethod def get_node(cls, info, id):