diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2012-07-25 22:32:31 +0200 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2012-07-25 22:32:53 +0200 |
| commit | 7d06f975fe445f0393455b3eb9ec17dbe04f2ec3 (patch) | |
| tree | 664db4d3ef8faf50ea623561800c741e01b314cd /docs/topics | |
| parent | a875f612e0ae84c2084d0b6230ffafe32a9777c8 (diff) | |
Fixed #18614 -- Added missing imports in code samples.
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/forms/index.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index b843107871..4693de6c7e 100644 --- a/docs/topics/forms/index.txt +++ b/docs/topics/forms/index.txt @@ -91,6 +91,9 @@ The standard pattern for processing a form in a view looks like this: .. code-block:: python + from django.shortcuts import render + from django.http import HttpResponseRedirect + def contact(request): if request.method == 'POST': # If the form has been submitted... form = ContactForm(request.POST) # A form bound to the POST data |
