﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27594	Reverse one to one related object populated from incorrect query columns	Daniel Hillier	daniel.hillier@…	"Extracting data for the related object from a queryset with a self referential one to one field gets the wrong data (incorrect columns) from the query when using a select_related with the reverse field.

The incorrect columns are introduced by the sqlcompiler mistaking the reverse select_related path as a part of a multiple concrete model inheritance structure.

The proposed fix tests for self-referential relationships and avoids the multiple concrete model inheritance path in those instances.

Test added and all other tests are passing."	Bug	assigned	Database layer (models, ORM)	dev	Normal		onetoone reverse	daniel.hillier@…	Unreviewed	1	0	0	0	0	0
