diff options
| author | Augusto Pontes <101043200+RankracerBR@users.noreply.github.com> | 2025-10-14 09:38:41 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-14 08:38:41 -0400 |
| commit | 5d6c36d8349be277bbfab282a1b4aa98296d4842 (patch) | |
| tree | 5e348319fa79d6a5c60d33410cdb9b41fe479504 | |
| parent | d0c8f89c942d1379724bdd37127076d13452f71d (diff) | |
Fixed #36654 -- Corrected Model._do_update()'s docstring.
| -rw-r--r-- | django/db/models/base.py | 5 |
1 files 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: |
