]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update basic_relationships.rst 5105/head
authorrandallk <randallk@gmail.com>
Mon, 20 Jan 2020 00:11:44 +0000 (17:11 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2020 00:11:44 +0000 (17:11 -0700)
Fix relationship used in doc.

doc/build/orm/basic_relationships.rst

index cf37440cb2a8b8f03a81ed2660bd08a2dff3ea96..ace6f8d7e3b9c384b9e4d8ff5052e8afb3c5782f 100644 (file)
@@ -412,7 +412,7 @@ associated object, and a second to a target attribute.
         p1.children.append(c1)
 
         # redundant, will cause a duplicate INSERT on Association
-        p1.parent_associations.append(Association(child=c1))
+        p1.child_associations.append(Association(child=c1))
 
   It's fine to use a mapping like the above if you know what
   you're doing, though it may be a good idea to apply the ``viewonly=True`` parameter