#23270: select_related on fields pointing to subclasses does not work when using
defer
-------------------------------------+-------------------------------------
Reporter: islavov | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.7-rc-2
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: select_related | Needs documentation: 0
defer | Patch needs improvement: 1
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by akaariai):
* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted
Comment:
The patch doesn't seem to work correctly. The obj.derived.base_ptr_id
doesn't have correct value of 1 in the test case.
{{{
>>> obj.derived.base_ptr_id
'bar'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23270#comment:6>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.acd0e19be266cb4cb5b7721403100983%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.