From: Chris Withers Date: Fri, 24 Sep 2010 11:10:43 +0000 (+0100) Subject: make less ficticious ;-) X-Git-Tag: rel_0_6_5~46^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63fc8cb3132401145ae5dcad0173871b4df2390d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git make less ficticious ;-) --- diff --git a/lib/sqlalchemy/ext/declarative.py b/lib/sqlalchemy/ext/declarative.py index ad08d7873d..0b471ee1fb 100755 --- a/lib/sqlalchemy/ext/declarative.py +++ b/lib/sqlalchemy/ext/declarative.py @@ -358,10 +358,10 @@ and simply pass it to declarative classes:: Base.metadata.reflect(some_engine) class User(Base): - __table__ = metadata['user'] + __table__ = metadata.tables['user'] class Address(Base): - __table__ = metadata['address'] + __table__ = metadata.tables['address'] Some configuration schemes may find it more appropriate to use ``__table__``, such as those which already take advantage of the data-driven nature of