summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTom Atkins <tom@knitatoms.net>2014-01-23 16:26:15 +0000
committerTim Graham <timograham@gmail.com>2014-01-23 13:48:09 -0500
commit3b869b09d084eb486c936ac4b528e288ceec83d5 (patch)
tree19a154cb6eba693ebec0ec827d01e6ce36de03a5 /docs
parentd01edbcddac0e533135f2263ce2d6c1df18dc61e (diff)
Fixed #21847 -- Clarified where ContactForm was defined
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/index.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt
index 70ed4a9c3d..a4dc0b4776 100644
--- a/docs/topics/forms/index.txt
+++ b/docs/topics/forms/index.txt
@@ -96,6 +96,7 @@ The standard pattern for processing a form in a view looks like this:
def contact(request):
if request.method == 'POST': # If the form has been submitted...
+ # ContactForm was defined in the the previous section
form = ContactForm(request.POST) # A form bound to the POST data
if form.is_valid(): # All validation rules pass
# Process the data in form.cleaned_data