On Monday 11 May 2009 16.30:52 Michael Bayer wrote: > Adrian von Bidder wrote:
> > I guess I have to use remote_side somehow but I couldn't figure how. > > class Node(Base): > __tablename__ = 'nodes' > > id = Column(Integer, primary_key = True) > parent_id = Column('parent', Integer, ForeignKey('nodes.id')) > parent = relation("Node", remote_side=id, backref="children") Obvious, isn't it ... I've tried Node.id, "id", "nodes.id", [Nodes.id] and a few others... Arrgh. cheers -- vbi -- featured product: the GNU Compiler Collection - http://gcc.gnu.org
signature.asc
Description: This is a digitally signed message part.