From: Edward Betts Date: Sun, 4 Apr 2021 07:40:07 +0000 (+0100) Subject: Bug fix for code example X-Git-Tag: rel_1_4_6~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18fef6af669762a11c7f4da5de1dd42b3bbc2a55;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Bug fix for code example Correct a mistake in a code example. --- diff --git a/doc/build/orm/cascades.rst b/doc/build/orm/cascades.rst index 5fbf3e34f3..23fec99eb7 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