From: randallk Date: Mon, 20 Jan 2020 00:11:44 +0000 (-0700) Subject: Update basic_relationships.rst X-Git-Tag: rel_1_3_14~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=750d568bd9e50068cdcd87a593e74b2819efcc77;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Update basic_relationships.rst Fix relationship used in doc. (cherry picked from commit 698a279c918b2d037fc49700c51126d624db777a) --- diff --git a/doc/build/orm/basic_relationships.rst b/doc/build/orm/basic_relationships.rst index cf37440cb2..ace6f8d7e3 100644 --- a/doc/build/orm/basic_relationships.rst +++ b/doc/build/orm/basic_relationships.rst @@ -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