Skip to content


Docs: "Form in a view" example doesn't use RequestContext #99

merged 1 commit into from

2 participants


Used the render shortcut in the "using a form in a view" example to ensure that the CSRF is properly enabled.

@adrianholovaty adrianholovaty merged commit 6799ffa into django:master
Django member

Thanks, Daniel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 31, 2012
  1. @danielroseman
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/topics/forms/index.txt
2 docs/topics/forms/index.txt
@@ -99,7 +99,7 @@ The standard pattern for processing a form in a view looks like this:
form = ContactForm() # An unbound form
- return render_to_response('contact.html', {
+ return render(request, 'contact.html', {
'form': form,
Something went wrong with that request. Please try again.