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 6899,_QuerySet.__nonzero__ returns True for empty query sets with cached results,Brodie Rao,nobody,"Given any sort of model with zero instances/rows, the following will currently occur: {{{ #!python >>> objects = Foo.objects.all() >>> bool(objects) False >>> bool(objects) True }}} `_QuerySet.__nonzero__` unconditionally returns `True` when the result cache is populated, even if nothing is in the cache (i.e. there are no results). I'm attaching a patch that fixes this behavior, and a test case for it.",,closed,"Database layer (models, ORM)",queryset-refactor,,fixed,qs-rf,,Accepted,1,0,0,0,0,0