Browse files

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

…PY3.
  • Loading branch information...
1 parent ded4014 commit 37d46b20fc5325b6fb082f95936a6c97c92dcf7d @loic loic committed Sep 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/schema.py
View
2 django/db/backends/schema.py
@@ -90,7 +90,7 @@ def execute(self, sql, params=[]):
# 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)

0 comments on commit 37d46b2

Please sign in to comment.