Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5551a6

Browse files
randallkzzzeek
authored andcommitted
Update basic_relationships.rst
Fix relationship used in doc. (cherry picked from commit 698a279)
1 parent cc6510b commit c5551a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/build/orm/basic_relationships.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ associated object, and a second to a target attribute.
412412
p1.children.append(c1)
413413

414414
# redundant, will cause a duplicate INSERT on Association
415-
p1.parent_associations.append(Association(child=c1))
415+
p1.child_associations.append(Association(child=c1))
416416

417417
It's fine to use a mapping like the above if you know what
418418
you're doing, though it may be a good idea to apply the ``viewonly=True`` parameter

0 commit comments

Comments
 (0)