#34925: refresh_from_db() will not iterate through all of the fields listed in
the
'fields' parameter.
-------------------------------------+-------------------------------------
Reporter: Andrew Cordery | Owner: Asfand
| Yar Khan
Type: Bug | Status: assigned
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* version: 4.2 => 5.0
* stage: Unreviewed => Accepted
Comment:
Wow it's surprising that this flew under the radar for so long. The bug
has been around since we introduced prefetched relationship clearing in
#29625.
We should definitely not alter the provided `fields` and obviously not
remove members while iterating over it.
--
Ticket URL: <https://code.djangoproject.com/ticket/34925#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018b63f79422-fa0ecaea-1074-4b07-9fd9-1fb79c7dbe48-000000%40eu-central-1.amazonses.com.