mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-19 20:52:19 +03:00
Actual fix
This commit is contained in:
parent
7b96114202
commit
c313648096
|
@ -270,7 +270,7 @@ class DjangoObjectType(ObjectType):
|
||||||
def is_type_of(cls, root, info):
|
def is_type_of(cls, root, info):
|
||||||
if isinstance(root, cls):
|
if isinstance(root, cls):
|
||||||
return True
|
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))
|
raise Exception(('Received incompatible instance "{}".').format(root))
|
||||||
|
|
||||||
if cls._meta.model._meta.proxy:
|
if cls._meta.model._meta.proxy:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user