]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Bug fix for code example 6197/head
authorEdward Betts <edward@4angle.com>
Sun, 4 Apr 2021 07:40:07 +0000 (08:40 +0100)
committerGitHub <noreply@github.com>
Sun, 4 Apr 2021 07:40:07 +0000 (08:40 +0100)
Correct a mistake in a code example.

doc/build/orm/cascades.rst

index 5fbf3e34f3d89ded03e87d465e04326f066adc28..23fec99eb79332d19cdf3a31c3c200e2652c414f 100644 (file)
@@ -89,7 +89,7 @@ object, ``address3`` to the ``user1.addresses`` collection, it
 becomes part of the state of that :class:`.Session`::
 
     >>> address3 = Address()
-    >>> user1.append(address3)
+    >>> user1.addresses.append(address3)
     >>> address3 in sess
     >>> True