Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@danielroseman

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
@adrianholovaty
Collaborator

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
View
2  docs/topics/forms/index.txt
@@ -99,7 +99,7 @@ The standard pattern for processing a form in a view looks like this:
else:
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.