]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- ensure that sqlalchemy.ext is set up for importlater
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Apr 2017 18:33:54 +0000 (14:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Apr 2017 18:33:54 +0000 (14:33 -0400)
commit63ff0140705207198545e3a0d7868a5ba8486e93
treee86b5b0fd75b9b3569681235ee016f0192c661bd
parent19d2424e05fadf66044d914b13a405cb212b4100
- ensure that sqlalchemy.ext is set up for importlater

otherwise, it fails if you import from ext before orm:

    from sqlalchemy import *
    from sqlalchemy.ext.declarative import declarative_base
    from sqlalchemy.orm import *

and then do a lazyload, as the ext.baked importlater is not
initialized.

Change-Id: I24dcbfc9ca9022316da28507772562833e45dd95
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/strategies.py