]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
eh, that __autoload_with__ idea was half baked.
authorJason Kirtland <jek@discorporate.us>
Mon, 10 Mar 2008 18:39:12 +0000 (18:39 +0000)
committerJason Kirtland <jek@discorporate.us>
Mon, 10 Mar 2008 18:39:12 +0000 (18:39 +0000)
lib/sqlalchemy/ext/declarative.py

index fbb68f579713374f7fbf5e0bbca778f72fe1e0b2..b1bd07fbf5fd794bb333cf2ef85d9982294cd902 100644 (file)
@@ -171,10 +171,8 @@ class DeclarativeMeta(type):
             if '__tablename__' in cls.__dict__:
                 tablename = cls.__tablename__
                 autoload = cls.__dict__.get('__autoload__')
-                if autoload is True:
+                if autoload:
                     table_kw = {'autoload': True}
-                elif autoload:
-                    table_kw = {'autoload': True, 'autoload_with': autoload}
                 else:
                     table_kw = {}
                 cls.__table__ = table = Table(tablename, cls.metadata, *[