Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

merged 1 commit into from almost 2 years ago

2 participants

Adrian Holovaty

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

Adrian Holovaty adrianholovaty merged commit 6799ffa into from June 04, 2012
Adrian Holovaty adrianholovaty closed this June 04, 2012
Adrian Holovaty

Thanks, Daniel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

May 31, 2012
Use render shortcut in form example. 5c59e43
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  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:
99 99
100 100
            form = ContactForm() # An unbound form
101 101
-       return render_to_response('contact.html', {
+       return render(request, 'contact.html', {
103 103
            'form': form,
104 104
105 105

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.