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_2_0b2~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43f41fbfaa8f3030148c131628c5e9fe8fda9f66;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. --- diff --git a/doc/build/orm/tutorial.rst b/doc/build/orm/tutorial.rst index f742151b00..9569e4b1f9 100644 --- a/doc/build/orm/tutorial.rst +++ b/doc/build/orm/tutorial.rst @@ -1386,7 +1386,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: