﻿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
20507	SubqueryConstraint doesn't relabel aliases correctly	Anssi Kääriäinen	nobody	"SubqueryConstraint (added in #19385) doesn't correctly handle relabeling of aliases. The problem is that SubqueryConstraint defines relabeled_clone(), but due to SubqueryConstraint being added directly to wherenode as children, not part of a children, the relabeled_clone() isn't ever called.

To trigger this bug one needs to do for example a double `__in` lookup (that is, lookup with `__in=qs` where the qs has a `__in=qs2` lookup itself), or `__in=qs` + combine of query.

This can be fixed by adding clone() and relabel_aliases() methods to SubqueryConstraint.

This bug is present in 1.6-alpha-1."	Bug	closed	Database layer (models, ORM)	dev	Normal	fixed			Accepted	0	0	0	0	0	0
