From 5d6c36d8349be277bbfab282a1b4aa98296d4842 Mon Sep 17 00:00:00 2001 From: Augusto Pontes <101043200+RankracerBR@users.noreply.github.com> Date: Tue, 14 Oct 2025 09:38:41 -0300 Subject: Fixed #36654 -- Corrected Model._do_update()'s docstring. --- django/db/models/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django/db/models/base.py b/django/db/models/base.py index d1321d6540..fd51052d01 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -1182,8 +1182,9 @@ class Model(AltersData, metaclass=ModelBase): returning_fields, ): """ - Try to update the model. Return True if the model was updated (if an - update query was done and a matching row was found in the DB). + Try to update the model. Return a list of updated fields if the model + was updated (if an update query was done and a matching row was + found in the DB). """ filtered = base_qs.filter(pk=pk_val) if not values: -- cgit v1.3