1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed regression introduced by efd1e60, 'map' returns an iterator on PY3.

This commit is contained in:
Loic Bistuer 2013-09-07 07:54:19 +07:00
parent ded40142a9
commit 37d46b20fc

View File

@ -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)