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 28719,Add a helpful exception message when ListView.get_queryset() returns None,Bjorn Kristinsson,Tim Graham ,"One of my `ListViews` suddenly started raising `TemplateDoesNotExist` with a rather cryptic (to me) message: {{{ Template-loader postmortem Django tried loading these templates, in this order: Using engine : This engine did not provide a list of tried templates. }}} It took me a while to realise this was because my get_queryset wasn't returning anything. It did some filtering based on user settings, and I didn't have a fallback for when none of the filtering steps applied. Thought it might be helpful to have a better message is no template names are found and `object_list` is `None`. Suggesting: ""Expected a queryset, but found None. Please check that .get_queryset() returns a queryset."" Pull request coming up.",Cleanup/optimization,closed,Generic views,dev,Normal,fixed,,Bjorn Kristinsson Herbert Fortes,Ready for checkin,1,0,0,0,1,0