From c313648096fbdb472695cda76a51f8be3be98ac0 Mon Sep 17 00:00:00 2001 From: Paul Craciunoiu Date: Thu, 23 Apr 2020 15:30:18 -0600 Subject: [PATCH] Actual fix --- 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 d897986..3314f45 100644 --- a/graphene_django/types.py +++ b/graphene_django/types.py @@ -270,7 +270,7 @@ class DjangoObjectType(ObjectType): def is_type_of(cls, root, info): if isinstance(root, cls): return True - if not is_valid_django_model(type(root.__class__)): + if not is_valid_django_model(root.__class__): raise Exception(('Received incompatible instance "{}".').format(root)) if cls._meta.model._meta.proxy: