Permalink
Browse files

Merge pull request #56 from ThiefMaster/patch-1

Preserve info['bind_key'] when creating table
  • Loading branch information...
2 parents b98d746 + a9339e7 commit f8d632008b37abb0ed5f90a47b65e9e74f3fe929 @mitsuhiko committed Jan 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 flaskext/sqlalchemy.py
@@ -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 f8d6320

Please sign in to comment.