diff options
author | Tom Sitter <thomas.sitter@gmail.com> | 2017-07-12 11:54:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 11:54:25 -0400 |
commit | 43f41fbfaa8f3030148c131628c5e9fe8fda9f66 (patch) | |
tree | 4baa6efe63ea2871101da6da6aca9eb9e68d419d | |
parent | e6555083d41accf983e5e8045956779c4fbc97a3 (diff) | |
download | sqlalchemy-43f41fbfaa8f3030148c131628c5e9fe8fda9f66.tar.gz |
Replace Session class with session instance
The Session class was used instead of the session instance which resulted in an attribute error.
-rw-r--r-- | doc/build/orm/tutorial.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/build/orm/tutorial.rst b/doc/build/orm/tutorial.rst index f742151b0..9569e4b1f 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: |