Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2841 -- Clarified documentation on procedure for field validat…

…ion. Thanks, dave@avaragado.org.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4886 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f271e0896bb74dd06a10d8de3221ce34c8e4d9dc 1 parent 9191fa1
Russell Keith-Magee authored April 01, 2007

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  docs/forms.txt
8  docs/forms.txt
@@ -517,10 +517,10 @@ to put punctuation at the end of your validation messages.
517 517
 When are validators called?
518 518
 ---------------------------
519 519
 
520  
-After a form has been submitted, Django first checks to see that all the
521  
-required fields are present and non-empty. For each field that passes that
522  
-test *and if the form submission contained data* for that field, all the
523  
-validators for that field are called in turn. The emphasized portion in the
  520
+After a form has been submitted, Django validates each field in turn. First, 
  521
+if the field is required, Django checks that it is present and non-empty. Then,
  522
+if that test passes *and the form submission contained data* for that field, all
  523
+the validators for that field are called in turn. The emphasized portion in the
524 524
 last sentence is important: if a form field is not submitted (because it
525 525
 contains no data -- which is normal HTML behavior), the validators are not
526 526
 run against the field.

0 notes on commit f271e08

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