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 21580,"Unclear why shortcut function ""render"" can not return TemplateResponse object",jgehrs@…,nobody,"The reason is - apparently - that this is pointless as TemplateResponse has a constructor with a syntax equivalently convenient as render(). See https://groups.google.com/forum/#!searchin/django-developers/templateresponse/django-developers/mOx9ddVTrPA/-WbaVc0pqeYJ. I have created a pull request and I suggest to update the documentation accordingly. I was confused by the fact that TemplateResponse is not even mentioned in the shortcut section, although using it should be a rather common thing. It gives the impression that TemplateResponse is a ""2nd class citizen"". Here's a link to the pull request: https://github.com/django/django/pull/2053",Cleanup/optimization,closed,Documentation,dev,Normal,fixed,,,Accepted,1,0,0,1,0,0