#7270: selected_related() can not follow reverse relations of OneToOne.
---------------------------------------------------+------------------------
Reporter: [email protected] | Owner:
mtredinnick
Status: new | Milestone: 1.2
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords:
select_related onetoone reverse
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 1 |
---------------------------------------------------+------------------------
Comment (by aiev):
A updated patch, no bug like:
{{{
>>> q = User.objects.select_related('user_profile')
>>> q
[]
>>>
}}}
But the problem persists when we .only() on the query set.
The .values() works fine, right?
--
Ticket URL: <http://code.djangoproject.com/ticket/7270#comment:35>
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
-~----------~----~----~----~------~----~------~--~---