diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2012-10-25 14:51:18 +0300 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2012-10-25 17:16:56 +0300 |
| commit | 11b8712cc743b496bdff5fe405a5036734ca67c3 (patch) | |
| tree | 6676d5a58288fc082845a08148ee331cef0704cc | |
| parent | f64a5ef404cb6fd28e008a01039a3beea2fa8e1b (diff) | |
Added docstring to DeleteQuery.delete_qs()
| -rw-r--r-- | django/db/models/sql/subqueries.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/models/sql/subqueries.py b/django/db/models/sql/subqueries.py index 1371ef58e9..7bed88c005 100644 --- a/django/db/models/sql/subqueries.py +++ b/django/db/models/sql/subqueries.py @@ -48,6 +48,11 @@ class DeleteQuery(Query): self.do_query(self.model._meta.db_table, where, using=using) def delete_qs(self, query, using): + """ + Delete the queryset in one SQL query (if possible). For simple queries + this is done by copying the query.query.where to self.query, for + complex queries by using subquery. + """ innerq = query.query # Make sure the inner query has at least one table in use. innerq.get_initial_alias() |
