From d7dd0e1e02b460b92a86db03be8a3ce5511c8880 Mon Sep 17 00:00:00 2001 From: Tom Sitter Date: Wed, 12 Jul 2017 11:54:25 -0400 Subject: [PATCH] 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) --- doc/build/orm/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/build/orm/tutorial.rst b/doc/build/orm/tutorial.rst index 1deaf09450..f089b650f4 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: -- 2.47.2