diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2012-06-04 13:13:14 -0700 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2012-06-04 13:13:14 -0700 |
| commit | 6799ffad9a4c7cd22c86c8e3cfdb8e55ad85cdc3 (patch) | |
| tree | fa53f5cd5ce81f4c8f53519efb787b22a737f1b4 /docs/topics | |
| parent | 5ef599c7b32a238bfda6f56cd149bacb61b85c77 (diff) | |
| parent | 5c59e43aef288d2f7adcaac4c0ae7692d6c01ba3 (diff) | |
Merge pull request #99 from danielroseman/master
Docs: "Form in a view" example doesn't use RequestContext
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/forms/index.txt | 2 |
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, }) |
