diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-07-17 02:38:10 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-07-17 02:38:10 +0000 |
| commit | 485bfe486148783870568ba7e47d41d8ab794069 (patch) | |
| tree | f3be5b3fccd9c44a1412519bbd022db77e139355 /django/db/models/sql/compiler.py | |
| parent | 59089a7d1384f5697e75c55f95a10e721757e2e7 (diff) | |
[soc2010/query-refactor] Implemented deletion. Thanks to Josh Ourisman for pointing this out.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/sql/compiler.py')
| -rw-r--r-- | django/db/models/sql/compiler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index b4c9ea1f44..b6ffdcb8c7 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -821,6 +821,9 @@ class SQLDeleteCompiler(SQLCompiler): where, params = self.query.where.as_sql(qn=qn, connection=self.connection) result.append('WHERE %s' % where) return ' '.join(result), tuple(params) + + def delete(self, *args, **kwargs): + return self.execute_sql(*args, **kwargs) class SQLUpdateCompiler(SQLCompiler): def as_sql(self): |
