﻿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
33127	"""&"" and ""|"" operators are silently ignored after QuerySet.union(), intersection(), and difference()."	Maxwell Tietze	Hasan Ramezani	"This looks like a similar issue to the one fixed in [https://code.djangoproject.com/ticket/27995 #27995]

Example:


{{{
class MyModel(models.Model):
    name = models.CharField()

for name in ['a', 'b', 'c']:
  MyModel.objects.create(name=name)

group1 = MyModel.objects.filter(name='a')
group2 = MyModel.objects.filter(name='b')
group3 = MyModel.objects.filter(name='c')
combined_group = group1.union(group2)
group_and = combined_group & group1
group_or = combined_group | group 3
}}}

In this example, combined_group, group_and and group_or all have the same SQL. These operators should raise an exception if they can not be applied after combinator functions.
"	Cleanup/optimization	closed	Database layer (models, ORM)	3.1	Normal	fixed		Hasan Ramezani	Ready for checkin	1	0	0	0	0	0
