diff options
author | Chris Withers <chris@simplistix.co.uk> | 2010-09-24 12:10:43 +0100 |
---|---|---|
committer | Chris Withers <chris@simplistix.co.uk> | 2010-09-24 12:10:43 +0100 |
commit | 63fc8cb3132401145ae5dcad0173871b4df2390d (patch) | |
tree | 82a22109f2a0f1c084db6550652f3f3b9cd561d9 /lib/sqlalchemy/ext/declarative.py | |
parent | 21d2a6d790983054e4d008af991b7dda309a94c4 (diff) | |
download | sqlalchemy-63fc8cb3132401145ae5dcad0173871b4df2390d.tar.gz |
make less ficticious ;-)
Diffstat (limited to 'lib/sqlalchemy/ext/declarative.py')
-rwxr-xr-x | lib/sqlalchemy/ext/declarative.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ext/declarative.py b/lib/sqlalchemy/ext/declarative.py index ad08d7873..0b471ee1f 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 |