#16937: Prefetch related objects
-------------------------------------+-------------------------------------
Reporter: lukeplant | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: 1.3
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 1
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by lukeplant):
I've updated the patch, pulling in most of your tests, and fixing the
issues.
Relevant to your work, I've eliminated the 'select_matching_instances'
method, so the nested loop now appears in the calling function, which
should make your job easier. It turns out all the
'select_matching_instances' methods could be generalised to two attributes
passed back from `get_prefetch_query_set()`.
I think I've addressed everything else - or everything else I agreed to
address :-)
Signing out for now.
--
Ticket URL: <https://code.djangoproject.com/ticket/16937#comment:16>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.