Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #21847 -- Clarified where ContactForm was defined

  • Loading branch information...
commit 3b869b09d084eb486c936ac4b528e288ceec83d5 1 parent d01edbc
Tom Atkins authored timgraham committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  docs/topics/forms/index.txt
1  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

0 comments on commit 3b869b0

Please sign in to comment.
Something went wrong with that request. Please try again.