]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update basic_relationships.rst
authorrandallk <randallk@gmail.com>
Mon, 20 Jan 2020 00:11:44 +0000 (17:11 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Feb 2020 01:09:19 +0000 (20:09 -0500)
Fix relationship used in doc.

(cherry picked from commit 698a279c918b2d037fc49700c51126d624db777a)

doc/build/orm/basic_relationships.rst

index 2836fe94cf2b24c6d14d110e86828b23deb6b682..fe9aa04da5a7c0401035cec8053ee2e029ab9aa0 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