﻿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
22221	Wrong join promotion on ManyToManyField to self with an intermediate model.	loic84	nobody	"Generated SQL:

{{{#!sql
SELECT ""m2m_through_personselfrefm2m"".""id"", ""m2m_through_personselfrefm2m"".""name""
FROM ""m2m_through_personselfrefm2m""
INNER JOIN ""m2m_through_friendship"" ON ( ""m2m_through_personselfrefm2m"".""id"" = ""m2m_through_friendship"".""second_id"" )
INNER JOIN ""m2m_through_friendship"" T4 ON ( ""m2m_through_personselfrefm2m"".""id"" = T4.""first_id"" )
WHERE (""m2m_through_friendship"".""first_id"" = 1 AND T4.""reason"" = 'because')
}}}
"	Bug	closed	Database layer (models, ORM)	dev	Normal	invalid			Unreviewed	0	0	0	0	0	0
