From: Mike Knudson Date: Wed, 23 Feb 2022 20:51:50 +0000 (-0700) Subject: Add missing query before trying to print (#7665) X-Git-Tag: rel_2_0_0b1~469 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=878c37614efd311794aa50467dbb9e3fe972fdff;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add missing query before trying to print (#7665) The documentation had a print before a query was run. --- diff --git a/lib/sqlalchemy/ext/automap.py b/lib/sqlalchemy/ext/automap.py index eb746dcee7..e0f532152f 100644 --- a/lib/sqlalchemy/ext/automap.py +++ b/lib/sqlalchemy/ext/automap.py @@ -56,6 +56,7 @@ asking it to reflect the schema and produce mappings:: # collection-based relationships are by default named # "_collection" + u1 = session.query(User).first() print (u1.address_collection) Above, calling :meth:`.AutomapBase.prepare` while passing along the