summaryrefslogtreecommitdiff
path: root/django/db/models/sql/compiler.py
diff options
context:
space:
mode:
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):
"""