#7270: selected_related() can not follow reverse relations of OneToOne.
---------------------------------------------------+------------------------
Reporter: [EMAIL PROTECTED] | Owner: gav
Status: new | Milestone: post-1.0
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords:
select_related onetoone reverse
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by mtredinnick):
There's a bug in the patch, robin. Reverse one-to-one's always have to use
an outer join, since there's no guarantee that the related object exists
(they are all nullable relationships when followed in reverse). I'll fix
this when I commit the change; I noticed it before and have a note about
it. That will happen, soon.
--
Ticket URL: <http://code.djangoproject.com/ticket/7270#comment:16>
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
-~----------~----~----~----~------~----~------~--~---