Changeset 5113
- Timestamp:
- 04/27/07 10:06:45 (1 year ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/docs/forms.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r5110 r5113 43 43 44 44 adurdin@gmail.com 45 alang@bright-green.com 45 46 Daniel Alves Barbosa de Oliveira Vaz <danielvaz@gmail.com> 46 47 Andreas django/trunk/docs/forms.txt
r5064 r5113 518 518 --------------------------- 519 519 520 After a form has been submitted, Django validates each field in turn. First, 520 After a form has been submitted, Django validates each field in turn. First, 521 521 if the field is required, Django checks that it is present and non-empty. Then, 522 522 if that test passes *and the form submission contained data* for that field, all … … 616 616 against the current field. 617 617 618 ``RequiredIfOtherFieldGiven`` 619 Takes a field name of the current field is only required if the other 620 field has a value. 621 622 ``RequiredIfOtherFieldsGiven`` 623 Similar to ``RequiredIfOtherFieldGiven``, except that it takes a list of 624 field names and if any one of the supplied fields has a value provided, 625 the current field being validated is required. 626 618 627 ``RequiredIfOtherFieldNotGiven`` 619 628 Takes the name of the other field and this field is only required if the 620 629 other field has no value. 621 622 ``RequiredIfOtherFieldsNotGiven``623 Similar to ``RequiredIfOtherFieldNotGiven``, except that it takes a list624 of field names and if any one of the supplied fields does not have a value625 provided, the field being validated is required.626 630 627 631 ``RequiredIfOtherFieldEquals`` and ``RequiredIfOtherFieldDoesNotEqual`` … … 651 655 Takes two boundary numbers, ``lower`` and ``upper``, and checks that the 652 656 field is greater than ``lower`` (if given) and less than ``upper`` (if 653 given). 654 657 given). 658 655 659 Both checks are inclusive. That is, ``NumberIsInRange(10, 20)`` will allow 656 660 values of both 10 and 20. This validator only checks numeric values
