#19501: Allow for fast path model loading
-------------------------------------+-------------------------------------
Reporter: akaariai | Owner: akaariai
Type: | Status: closed
Cleanup/optimization | Version: master
Component: Database layer | Resolution: fixed
(models, ORM) | Triage Stage: Ready for
Severity: Normal | checkin
Keywords: | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by Anssi Kääriäinen <akaariai@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"0b6f05ede648ce62a5c91c7c38a0a362711f0656"]:
{{{
#!CommitTicketReference repository=""
revision="0b6f05ede648ce62a5c91c7c38a0a362711f0656"
Fixed #19501 -- added Model.from_db() method
The Model.from_db() is intended to be used in cases where customization
of model loading is needed. Reasons can be performance, or adding custom
behavior to the model (for example "dirty field tracking" to issue
automatic update_fields when saving models).
A big thank you to Tim Graham for the review!
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/19501#comment:11>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.f2cff394591f09e5be02678bedb39dc6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.