#31680: Preventing DeferredAttribute .__ get__ method unnecessary calls.
-------------------------------------+-------------------------------------
Reporter: Sultan | Owner: Sultan
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* owner: nobody => Sultan
* status: new => assigned
* version: 3.1 => master
* stage: Unreviewed => Accepted
Comment:
It looks that `val = getattr(instance, field_name)` is redundant.
--
Ticket URL: <https://code.djangoproject.com/ticket/31680#comment:3>
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/067.e6268672c8fa428d7036db10700b1348%40djangoproject.com.