diff --git a/graphene_django/types.py b/graphene_django/types.py index 0c0cb1c..d897986 100644 --- a/graphene_django/types.py +++ b/graphene_django/types.py @@ -268,12 +268,9 @@ class DjangoObjectType(ObjectType): @classmethod def is_type_of(cls, root, info): - if isinstance(root, SimpleLazyObject): - root._setup() - root = root._wrapped if isinstance(root, cls): return True - if not is_valid_django_model(type(root)): + if not is_valid_django_model(type(root.__class__)): raise Exception(('Received incompatible instance "{}".').format(root)) if cls._meta.model._meta.proxy: