summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shevchenko <dmishe@gmail.com>2012-08-16 01:08:45 -0500
committerDmitry Shevchenko <dmishe@gmail.com>2012-08-16 01:08:45 -0500
commit4412de5d8d5be6fa9b9a3c0a0881ed741dbe3569 (patch)
treee2b56ba16c092e31c20cbba9c22338b38394bac1
parentbefa1dd7a5f88bcf994598c36438338109478409 (diff)
[py3] Fixed installed_models filtering.
-rw-r--r--django/db/backends/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py
index 77033390eb..c7682a546b 100644
--- a/django/db/backends/__init__.py
+++ b/django/db/backends/__init__.py
@@ -991,7 +991,7 @@ class BaseDatabaseIntrospection(object):
for model in models.get_models(app):
if router.allow_syncdb(self.connection.alias, model):
all_models.append(model)
- tables = map(self.table_name_converter, tables)
+ tables = list(map(self.table_name_converter, tables))
return set([
m for m in all_models
if self.table_name_converter(m._meta.db_table) in tables