Skip to content

Commit

Permalink
Merge pull request django#99 from danielroseman/master
Browse files Browse the repository at this point in the history
Docs: "Form in a view" example doesn't use RequestContext
  • Loading branch information
adrianholovaty committed Jun 4, 2012
2 parents 5ef599c + 5c59e43 commit 6799ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/forms/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})

Expand Down

0 comments on commit 6799ffa

Please sign in to comment.