Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use render shortcut in form example.

  • Loading branch information...
commit 5c59e43aef288d2f7adcaac4c0ae7692d6c01ba3 1 parent b4b8977
@danielroseman danielroseman authored
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,
})
Please sign in to comment.
Something went wrong with that request. Please try again.