summaryrefslogtreecommitdiff
path: root/django/db/models/sql/compiler.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-06-09 19:59:44 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-06-09 19:59:44 +0000
commit28499bbe36c36fecf81cb8369fcb01efdc6f7160 (patch)
treec82f0cc2a86df56dd00f16bdd4e3802f5e2314b5 /django/db/models/sql/compiler.py
parent7ce89032b6d54072c1f622a84f479c7e50bd6f18 (diff)
[soc2010/query-refactor] Fixed update on MongoDB.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/sql/compiler.py')
-rw-r--r--django/db/models/sql/compiler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
index 393efc1b3f..1cd5cb535b 100644
--- a/django/db/models/sql/compiler.py
+++ b/django/db/models/sql/compiler.py
@@ -866,6 +866,9 @@ class SQLUpdateCompiler(SQLCompiler):
if where:
result.append('WHERE %s' % where)
return ' '.join(result), tuple(update_params + params)
+
+ def update(self, *args, **kwargs):
+ return self.execute_sql(*args, **kwargs)
def execute_sql(self, result_type):
"""