To prevent this unnecessary call, we can simply delete it (since at that
moment the instance dict already contains the reloaded value). This
reduces the number of method calls.
--
Ticket URL: <https://code.djangoproject.com/ticket/31706>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Ready for checkin
Comment:
[https://github.com/django/django/pull/13064 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/31706#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"6b25d24a5755bb90c037e2afd485668bae8f179e" 6b25d24a]:
{{{
#!CommitTicketReference repository=""
revision="6b25d24a5755bb90c037e2afd485668bae8f179e"
Fixed #31706 -- Removed unnecessary getattr() call in
FileDescriptor.__get__().
refresh_from_db() loads fields values.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31706#comment:2>