From 4412de5d8d5be6fa9b9a3c0a0881ed741dbe3569 Mon Sep 17 00:00:00 2001 From: Dmitry Shevchenko Date: Thu, 16 Aug 2012 01:08:45 -0500 Subject: [PATCH] [py3] Fixed installed_models filtering. --- django/db/backends/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 77033390eb3..c7682a546bc 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