Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
  • Loading branch information...
commit 9273575e6b656f26f877c921f6530fa8c41b4563 1 parent 89c2fba
Malcolm Tredinnick authored October 05, 2008

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/db/models/sql/subqueries.py
3  django/db/models/sql/subqueries.py
@@ -293,7 +293,8 @@ def __init__(self, *args, **kwargs):
293 293
     def clone(self, klass=None, **kwargs):
294 294
         extras = {'columns': self.columns[:], 'values': self.values[:],
295 295
                 'params': self.params}
296  
-        return super(InsertQuery, self).clone(klass, extras)
  296
+        extras.update(kwargs)
  297
+        return super(InsertQuery, self).clone(klass, **extras)
297 298
 
298 299
     def as_sql(self):
299 300
         # We don't need quote_name_unless_alias() here, since these are all

0 notes on commit 9273575

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