diff --git a/django/db/models/query.py b/django/db/models/query.py index de00bba8d75a..61d400200056 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -1183,11 +1183,11 @@ def delete(self): collector = Collector(using=del_query.db, origin=self) collector.collect(del_query) - deleted, _rows_count = collector.delete() + num_deleted, num_deleted_per_model = collector.delete() # Clear the result cache, in case this QuerySet gets reused. self._result_cache = None - return deleted, _rows_count + return num_deleted, num_deleted_per_model delete.alters_data = True delete.queryset_only = True