]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
make less ficticious ;-)
authorChris Withers <chris@simplistix.co.uk>
Fri, 24 Sep 2010 11:10:43 +0000 (12:10 +0100)
committerChris Withers <chris@simplistix.co.uk>
Fri, 24 Sep 2010 11:10:43 +0000 (12:10 +0100)
lib/sqlalchemy/ext/declarative.py

index ad08d7873d12bd4b604322f8d36828e60f95a0c2..0b471ee1fbc1fca787947343bb38b718498a4d03 100755 (executable)
@@ -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