﻿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
8375	It's better to allow using tables parameter with custom alias in extra query	Wonlay	nobody	"Sometimes we need specify tables that are already used in the query (In my case INNER JOIN on the save model).[[BR]]
Currently, django don't allow such queries, the extra table won't create another alias.[[BR]]
I find it's better, if we allow specifying a explicit alias, so that we can use the extra query like this:[[BR]]
{{{
MyModel.objects.extra(tables['app_table1 alias1'], where=['app_table1.col1=alias1.col1', 'alias1.name like ...'])
}}}

And the patch attached."	New feature	closed	Database layer (models, ORM)	dev	Normal	wontfix	query, extra, tables, custom alias	wonlay@… bas@… tim.babych@…	Someday/Maybe	1	1	1	1	0	0
