Skip to content
Browse files

Use render shortcut in form example.

  • Loading branch information...
1 parent b4b8977 commit 5c59e43aef288d2f7adcaac4c0ae7692d6c01ba3 @danielroseman danielroseman committed
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,
})

0 comments on commit 5c59e43

Please sign in to comment.
Something went wrong with that request. Please try again.