]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Bug fix for code example
authorEdward Betts <edward@4angle.com>
Sun, 4 Apr 2021 07:40:07 +0000 (08:40 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Apr 2021 18:15:30 +0000 (14:15 -0400)
Correct a mistake in a code example.

(cherry picked from commit 18fef6af669762a11c7f4da5de1dd42b3bbc2a55)

doc/build/orm/cascades.rst

index 561ee732f03835d8c778096a370f742b8eea2bb5..b8baf895399560dedbda2d366701a04e1419d799 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