mirror of
https://github.com/django/django.git
synced 2025-07-21 10:09:14 +00:00
[1.0.X] Fixed #9068 -- Fixed a couple of typos in InsertQuery.clone(). Thanks, rush.
Backport of r9150 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
89c2fba23b
commit
9273575e6b
@ -293,7 +293,8 @@ class InsertQuery(Query):
|
|||||||
def clone(self, klass=None, **kwargs):
|
def clone(self, klass=None, **kwargs):
|
||||||
extras = {'columns': self.columns[:], 'values': self.values[:],
|
extras = {'columns': self.columns[:], 'values': self.values[:],
|
||||||
'params': self.params}
|
'params': self.params}
|
||||||
return super(InsertQuery, self).clone(klass, extras)
|
extras.update(kwargs)
|
||||||
|
return super(InsertQuery, self).clone(klass, **extras)
|
||||||
|
|
||||||
def as_sql(self):
|
def as_sql(self):
|
||||||
# We don't need quote_name_unless_alias() here, since these are all
|
# We don't need quote_name_unless_alias() here, since these are all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user