Fixed #36654 -- Corrected Model._do_update()'s docstring.

This commit is contained in:
Augusto Pontes 2025-10-14 09:38:41 -03:00 committed by GitHub
parent d0c8f89c94
commit 5d6c36d834
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1182,8 +1182,9 @@ class Model(AltersData, metaclass=ModelBase):
returning_fields, returning_fields,
): ):
""" """
Try to update the model. Return True if the model was updated (if an Try to update the model. Return a list of updated fields if the model
update query was done and a matching row was found in the DB). was updated (if an update query was done and a matching row was
found in the DB).
""" """
filtered = base_qs.filter(pk=pk_val) filtered = base_qs.filter(pk=pk_val)
if not values: if not values: