I have a Self-Referential Many-to-Many Relationship situation where the 

right_nodes = relationship("Node",
                        secondary=node_to_node,
                        primaryjoin=id==node_to_node.c.left_node_id,
                        secondaryjoin=id==node_to_node.c.right_node_id,
                        backref="left_nodes"


works fine.
The problem:
I need a "related nodes" relationship, which, in one expression, returns 
all related nodes, both left nodes and right nodes, excluding the given 
node itself.
Is that possible using the RELATIONSHIP construct?

Adolfo


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/28NZQAdDx6sJ.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to