#12851: Queryset "defer" won't work properly with select_related
---------------------------------------------------+------------------------
Reporter: ruosteinen | Owner: nobody
Status: new | Milestone: 1.2
Component: Database layer (models, ORM) | Version: 1.2-beta
Resolution: | Keywords:
select_related, defer, nesting, query
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by ruosteinen):
@carljm, sorry. Changed the code a bit on the fly. But as russellm said,
it still doesn't work.
@russellm True. Although in the proposed patch to #10733
only_load=only_load get passed properly to
django.db.models.query.get_cached_row while recursing and after that
relationships with deferred fields work properly i.e. type(pm.target) ==
<class 'buggy.models.Target_Deferred_location'>.
--
Ticket URL: <http://code.djangoproject.com/ticket/12851#comment:5>
Django <http://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.