﻿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
2430	QuerySet should be evaluated when used in boolean tests	James Bennett	nobody	"Currently, a QuerySet is not evaluated when being used in boolean contexts (e.g., doing `if SomeModel.objects.all():`); this leads to counterintuitive behavior, because it will always resolve to a True value regardless of whether it would return any objects when ""actually"" evaluated.

Adding a `__nonzero__` method to QuerySet which does the evaluation would solve this."	defect	closed	Database layer (models, ORM)	dev	normal	fixed	qs-rf-fixed	ferringb@… harish.mallipeddi@…	Accepted	1	0	0	0	0	0
