Skip to content
Browse files

Merge pull request #99 from danielroseman/master

Docs: "Form in a view" example doesn't use RequestContext
  • Loading branch information...
2 parents 5ef599c + 5c59e43 commit 6799ffad9a4c7cd22c86c8e3cfdb8e55ad85cdc3 @adrianholovaty adrianholovaty 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 6799ffa

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