#17143: select_related makes base __init__ unsafe
-------------------------------------+-------------------------------------
Reporter: Leo | Owner:
Type: Bug | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):
* status: assigned => new
* needs_better_patch: 1 => 0
* has_patch: 1 => 0
* owner: calvinspealman =>
Comment:
Based on the test case in the description, it looks like this was fixed in
Django 1.6 by 1194a9699932088385f9f88869be28a251597f45. The result is now:
{{{
>>> A.objects.select_related('b')
Y
Y
}}}
However, no tests were added in that patch, so it seems a good idea to try
to add some before closing this ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/17143#comment:8>
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/061.ac9d44c2f2544bb95e707f23c1c2c24f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.