#10733: Invalid results when deferring fields in more than one related model with only() ---------------------------------------------------+------------------------ Reporter: mrts | Owner: nobody Status: new | Milestone: 1.1 Component: Database layer (models, ORM) | Version: SVN Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Comment (by Alex):
I looked at this for a while and didn't make any huge progress, but I think I found 2 issues(maybe :/): 1. The SQL for {{{ Leaf.objects.only('child__name', 'second_child__name').select_related() }}} is only doing 1 join, and I think it needs to be doing 2. 2. It seems that neither of those child models is actually a deferred model there. -- Ticket URL: <http://code.djangoproject.com/ticket/10733#comment:4> 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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---