Merge pull request #99 from danielroseman/master

Docs: "Form in a view" example doesn't use RequestContext
This commit is contained in:
Adrian Holovaty 2012-06-04 13:13:14 -07:00
commit 6799ffad9a
1 changed files with 1 additions and 1 deletions

View File

@ -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,
})