﻿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
21912	"Improve error message ""The view ___ didn't return an HttpResponse object."""	brycenesbitt	AeroNotix	"The error message ""The view _ didn't return an HttpResponse object."" in base.py leaves
open the question ""What did it return""? This is a proposal to change the message to:

""The view _ returned None: an HttpResponse object was expected.""

The code in question is:


  
{{{
              # Complain if the view returned None (a common error).
                if response is None:
                    if isinstance(callback, types.FunctionType):    # FBV
                        view_name = callback.__name__
                    else:                                           # CBV
                        view_name = callback.__class__.__name__ + '.__call__'
                    raise ValueError(""The view %s.%s didn't return an HttpResponse object.""
                 % (callback.__module__, view_name))
}}}
"	Cleanup/optimization	closed	Core (Other)	1.7-alpha-1	Normal	fixed			Accepted	0	0	0	0	0	0
