relay Connection.node does not have to subclass Node/ObjectType

This commit is contained in:
Simon Hewitt 2016-08-31 15:03:51 -07:00
parent f955280d1a
commit 87634240c9

View File

@ -57,9 +57,6 @@ class ConnectionMeta(ObjectTypeMeta):
options.local_fields = OrderedDict()
assert options.node, 'You have to provide a node in {}.Meta'.format(cls.__name__)
assert issubclass(options.node, (Node, ObjectType)), (
'Received incompatible node "{}" for Connection {}.'
).format(options.node, name)
base_name = re.sub('Connection$', '', options.name) or options.node._meta.name
if not options.name: