﻿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
34728	OR operator on queryset does not work as expected	Kbleser	nobody	"I try to combine two querysets using the {{{|}}} operator. Even though one of the querysets isn't empty, the resulting queryset is empty. 

Example: 
{{{similar_recipes = at_least_four_shared_ingredients | same_tag_and_at_least_two_shared_ingredients}}}

{{{same_tag_and_at_least_two_shared_ingredients}}} contains entries but {{{similar_recipes}}} doesn't.

You can reproduce the problem here: https://github.com/Inglorious-Inge/Kochbuch2/tree/queryset_problem
The test in {{{recipes/tests/test_models.py}}} is failing.
The code under test is in {{{recipes/models.py}}} line 30-45."	Bug	closed	Database layer (models, ORM)	4.2	Normal	duplicate	queryset OR	rene@… Kbleser Simon Charette	Unreviewed	0	0	0	0	0	0
