diff options
author | randallk <randallk@gmail.com> | 2020-01-19 17:11:44 -0700 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-02-06 20:09:19 -0500 |
commit | c5551a68f56a8a88fb8e3fe11c71a96a31b814cc (patch) | |
tree | b1713e59cf157da06194dede80faf601e40e6d2d | |
parent | cc6510bc4677fe54aada005763b5fc42f0c6db7b (diff) | |
download | sqlalchemy-c5551a68f56a8a88fb8e3fe11c71a96a31b814cc.tar.gz |
Update basic_relationships.rst
Fix relationship used in doc.
(cherry picked from commit 698a279c918b2d037fc49700c51126d624db777a)
-rw-r--r-- | doc/build/orm/basic_relationships.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/build/orm/basic_relationships.rst b/doc/build/orm/basic_relationships.rst index 2836fe94c..fe9aa04da 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 |