diff options
| author | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-09-07 07:54:19 +0700 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-09-07 08:00:11 +0700 |
| commit | 37d46b20fc5325b6fb082f95936a6c97c92dcf7d (patch) | |
| tree | 2c8f9637d0a6e4040db8942847d4d8d2d0419b58 | |
| parent | ded40142a92813a8901faa4a6ca398e6679152f6 (diff) | |
Fixed regression introduced by efd1e60, 'map' returns an iterator on PY3.
| -rw-r--r-- | django/db/backends/schema.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
