mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-17 11:42:33 +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):
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user