﻿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
26517	Empty Querset Using Empty Queryset in ExpressionWrapper	Sven R. Kunze	nobody	"We use the ExpressionWrapper + annotate to annotate specific boolean values to all queried instances like this (minimal working example):

{{{
editable_ones = ..... # another queryset
result = MyModel.objects.annotate(editable=ExpressionWrapper(Q(pk__in=editable_child_folders), output_field=BooleanField())
}}}

As soon as {{{editable_ones}}} is empty, {{{result}}} is also empty. Reading the docs, I guess this is not desired behavior (https://docs.djangoproject.com/en/1.9/ref/models/querysets/#annotate)."	Bug	new	Database layer (models, ORM)	1.8	Normal				Unreviewed	0	0	0	0	0	0
