From e29d1870dd2b44f1b12c4ddf29b3fd24a903f7fd Mon Sep 17 00:00:00 2001 From: Michael <6431441+expert-m@users.noreply.github.com> Date: Tue, 2 Jan 2024 07:30:16 +0300 Subject: [PATCH] Improved variable names in QuerySet.delete(). --- django/db/models/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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