change render_to_response to render
Merge pull request #779 from dimagi/render

change render_to_response to render