From 37d46b20fc5325b6fb082f95936a6c97c92dcf7d Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Sat, 7 Sep 2013 07:54:19 +0700 Subject: [PATCH] Fixed regression introduced by efd1e60, 'map' returns an iterator on PY3. --- django/db/backends/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/schema.py b/django/db/backends/schema.py index fab81ea7df..8b4255267c 100644 --- a/django/db/backends/schema.py +++ b/django/db/backends/schema.py @@ -90,7 +90,7 @@ class BaseDatabaseSchemaEditor(object): # Log the command we're running, then run it logger.debug("%s; (params %r)" % (sql, params)) if self.collect_sql: - self.collected_sql.append((sql % map(self.connection.ops.quote_parameter, params)) + ";") + self.collected_sql.append((sql % list(map(self.connection.ops.quote_parameter, params))) + ";") else: cursor.execute(sql, params)