]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Tweak ([ticket:673])
authorJason Kirtland <jek@discorporate.us>
Wed, 1 Aug 2007 00:18:38 +0000 (00:18 +0000)
committerJason Kirtland <jek@discorporate.us>
Wed, 1 Aug 2007 00:18:38 +0000 (00:18 +0000)
doc/build/content/adv_datamapping.txt

index b7fae0ff43b24dc963b9ef7cc2eb9047d84f20be..12141bb80a0002a2c4c1fd30f61d6f27ffa917a2 100644 (file)
@@ -809,13 +809,13 @@ A self-referential mapper where there is more than one relationship on the table
     mapper(TreeNode, trees, properties={
             'children' : relation(
                             TreeNode, 
-                            primaryjoin=trees.c.parent_node_id==trees.c.node_id
+                            primaryjoin=trees.c.parent_node_id == trees.c.node_id
                             cascade="all",
                             backref=backref("parent", remote_side=[trees.c.node_id])
                          ),
             'root' : relation(
                     TreeNode,
-                    primaryjoin=trees.c.root_node_id=trees.c.node_id, 
+                    primaryjoin=trees.c.root_node_id == trees.c.node_id, 
                     remote_side=[trees.c.node_id],
                     uselist=False
                 )