From: Tom Sitter Date: Wed, 12 Jul 2017 15:54:25 +0000 (-0400) Subject: Replace Session class with session instance X-Git-Tag: rel_1_0_18~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbca4faf6433bd85236622eb2417d4b4aad3ad31;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Replace Session class with session instance The Session class was used instead of the session instance which resulted in an attribute error. (cherry picked from commit 43f41fbfaa8f3030148c131628c5e9fe8fda9f66) --- diff --git a/doc/build/orm/tutorial.rst b/doc/build/orm/tutorial.rst index e960b1ad53..83c1a2ab3c 100644 --- a/doc/build/orm/tutorial.rst +++ b/doc/build/orm/tutorial.rst @@ -1334,7 +1334,7 @@ is an important method at the center of usage for any SQL-fluent application. ON clause is a plain SQL expression. To control the first entity in the list of JOINs, use the :meth:`.Query.select_from` method:: - query = Session.query(User, Address).select_from(Address).join(User) + query = session.query(User, Address).select_from(Address).join(User) .. _ormtutorial_aliases: