#27594: Reverse one to one related object populated from incorrect query columns
-------------------------------------+-------------------------------------
Reporter: Daniel Hillier | Owner: Daniel
| Hillier
Type: Bug | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: onetoone reverse | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham <timograham@…>):
In [changeset:"4a9f9cc521f09c60f56024eb6688e30ab86b998f" 4a9f9cc5]:
{{{
#!CommitTicketReference repository=""
revision="4a9f9cc521f09c60f56024eb6688e30ab86b998f"
Fixed #27594 -- Fixed select_related() with reverse self-referential
OneToOneField.
Fix definition of `klass_info['from_parent']`. The relationship between
two models shouldn't be considered as being from a parent class if the
model classes are the same.
Thanks Tim for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27594#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.07714c31bb573ed396f6d9d37af83258%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.