﻿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
7818	Merging querysets can result in wrong operator grouping	Andrew Badr	Malcolm Tredinnick	"If you do (Foo.objects.filter(bar=x) | Foo.objects.filter(bar=y)) & Foo.objects.filter(baz=x) the query's WHERE clause will look like ""bar=x OR bar=y AND baz=z"". This is wrong because the ORs should be parenthesized. Using the |, & operators on Q objects results in the correct behavior."		closed	Database layer (models, ORM)	dev		fixed			Accepted	0	0	0	0	0	0
