From cfb0b2257b74d2a5919100a84f0c28ae529dadb7 Mon Sep 17 00:00:00 2001 From: Markus Padourek Date: Tue, 7 Jun 2016 10:08:36 +0100 Subject: [PATCH] Also allow node interface in SimpleConnection --- graphene/relay/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/relay/types.py b/graphene/relay/types.py index 0d27c99b..25279128 100644 --- a/graphene/relay/types.py +++ b/graphene/relay/types.py @@ -112,8 +112,8 @@ class SimpleConnection(Connection): @classmethod @memoize def for_node(cls, node, edge_type=None): - from graphene.relay.utils import is_node - assert is_node(node), 'ObjectTypes in a connection have to be Nodes' + from graphene.relay.utils import is_node, is_node_type + assert is_node(node) or is_node_type(node), 'ObjectTypes in a connection have to be Nodes' edges = List(node, description='Information to aid in pagination.') return type( '%s%s' % (node._meta.type_name, cls._meta.type_name),