mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-14 02:02:20 +03:00
fix type
This commit is contained in:
parent
3c16928ed2
commit
65ab452045
|
@ -126,9 +126,7 @@ class DjangoObjectType(ObjectType):
|
||||||
return True
|
return True
|
||||||
if not is_valid_neomodel_model(type(root)):
|
if not is_valid_neomodel_model(type(root)):
|
||||||
raise Exception(('Received incompatible instance "{}".').format(root))
|
raise Exception(('Received incompatible instance "{}".').format(root))
|
||||||
|
return root == cls._meta.model
|
||||||
model = root._meta.model
|
|
||||||
return model == cls._meta.model
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_node(cls, info, id):
|
def get_node(cls, info, id):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user