mirror of
https://github.com/django/django.git
synced 2025-11-20 11:36:04 +00:00
Fixed #36654 -- Corrected Model._do_update()'s docstring.
This commit is contained in:
parent
d0c8f89c94
commit
5d6c36d834
1 changed files with 3 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue