Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 40904d0404a6d6a34b6f35e7c33be702326e042a 1 parent 2f18833
@malcolmt malcolmt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/db/models/sql/subqueries.py
View
3  django/db/models/sql/subqueries.py
@@ -293,7 +293,8 @@ def __init__(self, *args, **kwargs):
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

0 comments on commit 40904d0

Please sign in to comment.
Something went wrong with that request. Please try again.