Browse files

Another SQLa 0.6 compatibility fix: table_iterator removed.

  • Loading branch information...
1 parent 8f66fea commit 27d9bbde98dbd6fcdbd73ba3e823f791f362d151 @g2p committed Jan 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tranquil/translator.py
View
2 tranquil/translator.py
@@ -132,7 +132,7 @@ def __init__( self, meta, models ):
self.mt_map = {}
self.mo_map = {}
self.use_django_models = getattr( settings, 'TRANQ_USE_DJANGO_MODELS', False )
- for table in meta.table_iterator():
+ for table in meta.sorted_tables:
self.tables[ str(table) ] = table
( self.tables, self.mappers ) = load_custom( self.meta, self.tables )
self.relations = self.backreferences()

0 comments on commit 27d9bbd

Please sign in to comment.