From dbca4faf6433bd85236622eb2417d4b4aad3ad31 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 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: -- 2.47.3