summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-05 11:55:52 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-05 11:55:52 +0000
commit40904d0404a6d6a34b6f35e7c33be702326e042a (patch)
treec9241ae295ece90da15ecceb0779a179e30d06e6
parent2f188334d359c444d7f134fbde3751f75b212cf9 (diff)
Fixed #9068 -- Fixed a couple of typos in InsertQuery.clone(). Thanks, rush.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/models/sql/subqueries.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/models/sql/subqueries.py b/django/db/models/sql/subqueries.py
index 8a2493e80f..39ef439dc9 100644
--- a/django/db/models/sql/subqueries.py
+++ b/django/db/models/sql/subqueries.py
@@ -293,7 +293,8 @@ class InsertQuery(Query):
def clone(self, klass=None, **kwargs):
extras = {'columns': self.columns[:], 'values': self.values[:],
'params': self.params}
- return super(InsertQuery, self).clone(klass, extras)
+ extras.update(kwargs)
+ return super(InsertQuery, self).clone(klass, **extras)
def as_sql(self):
# We don't need quote_name_unless_alias() here, since these are all