#10733: Invalid results when deferring fields in more than one related model with only() ---------------------------+------------------------------------------------ Reporter: mrts | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ Given the same models as in #10710, the following works as expected: {{{ >>> results = C.objects.all().only('name', 'a', 'b').select_related() >>> results[0].a.name u'a2' >>> results[0].b.name u'b1' }}} , but the following does not pull in the second related model field (`b.name`): {{{ >>> results = C.objects.all().only('name', 'a', 'b', 'a__name', 'b__name').select_related() >>> results[0].a.name u'a2' >>> results[0].b.name '' }}}
-- Ticket URL: <http://code.djangoproject.com/ticket/10733> 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 -~----------~----~----~----~------~----~------~--~---