Permalink
Browse files

Preserve info['bind_key'] when creating table

- When creating a table on in the non-declarative way, info/bind_key was lost
  • Loading branch information...
1 parent e8450c4 commit a9339e7d894f0e654ed63ce89d2b1edc696ad1f7 @ThiefMaster ThiefMaster committed Oct 8, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 flaskext/sqlalchemy.py
View
@@ -52,6 +52,7 @@ def _make_table(*args, **kwargs):
args = (args[0], db.metadata) + args[1:]
info = kwargs.pop('info', None) or {}
info.setdefault('bind_key', None)
+ kwargs['info'] = info
return sqlalchemy.Table(*args, **kwargs)
return _make_table

0 comments on commit a9339e7

Please sign in to comment.