From 59f73c7f2754644fd7cd5d429f1e160851920856 Mon Sep 17 00:00:00 2001 From: Mardanov Timur Rustemovich Date: Tue, 15 Jan 2019 18:17:57 +0300 Subject: [PATCH] fixed typo --- 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 374d270..80e54bf 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 isinstance(root.__class__, cls._meta.model) + return isinstance(root, cls._meta.model) @classmethod def get_node(cls, info, id):