summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Roseman <daniel@roseman.org.uk>2012-05-31 15:33:45 +0100
committerDaniel Roseman <daniel@roseman.org.uk>2012-05-31 15:33:45 +0100
commit5c59e43aef288d2f7adcaac4c0ae7692d6c01ba3 (patch)
tree099e4623529bdf9345627b5a858f0dcf718113f9 /docs
parentb4b8977814071bc0d624524404d08ff632b38d55 (diff)
Use render shortcut in form example.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/index.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt
index 18e55f5eb6..4870ffc094 100644
--- a/docs/topics/forms/index.txt
+++ b/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,
})