Opened 13 hours ago

Last modified 3 hours ago

#36654 new Cleanup/optimization

Incorrect docstring in model _do_update

Reported by: Václav Řehák Owned by:
Component: Database layer (models, ORM) Version: 6.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In 55a0073b3beb9de8f7c1f7c44a7d0bc10126c841 _do_update was changed not to return bool but a list of updated fileds but the docstring at
https://github.com/django/django/blob/main/django/db/models/base.py#L1185 was not updated

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).

Change History (1)

comment:1 by Augusto Pontes, 3 hours ago

Hi, so i analyzed the docstring at the {{ _do_update}}} method, can i give a suggestion of the correct docstring?

Note: See TracTickets for help on using tickets.
Back to Top