From: Edward Betts Date: Sun, 4 Apr 2021 07:40:07 +0000 (+0100) Subject: Bug fix for code example X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=976604ccd66ecd0bd59a5b1fd35fdfc3bf08560b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Bug fix for code example Correct a mistake in a code example. (cherry picked from commit 18fef6af669762a11c7f4da5de1dd42b3bbc2a55) --- diff --git a/doc/build/orm/cascades.rst b/doc/build/orm/cascades.rst index 561ee732f0..b8baf89539 100644 --- a/doc/build/orm/cascades.rst +++ b/doc/build/orm/cascades.rst @@ -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