Ticket #6683: 6683.docs.newforms.diff
File 6683.docs.newforms.diff, 1.2 KB (added by , 17 years ago) |
---|
-
docs/newforms.txt
1565 1565 1566 1566 These methods are run in the order given above, one field at a time. That is, 1567 1567 for each field in the form (in the order they are declared in the form 1568 definition), the ``Field.clean()`` method (or it 's override) is run, then1568 definition), the ``Field.clean()`` method (or its override) is run, then 1569 1569 ``clean_<fieldname>()``. Finally, once those two methods are run for every 1570 field, the ``Form.clean()`` method, or it 's override, is executed.1570 field, the ``Form.clean()`` method, or its override, is executed. 1571 1571 1572 1572 As mentioned above, any of these methods can raise a ``ValidationError``. For 1573 1573 any field, if the ``Field.clean()`` method raises a ``ValidationError``, any … … 1689 1689 comment = forms.CharField() 1690 1690 1691 1691 This form will include three default TextInput widgets, with default rendering - 1692 no CSS class, no extra attributes. This means that the input sboxes provided for1692 no CSS class, no extra attributes. This means that the input boxes provided for 1693 1693 each widget will be rendered exactly the same:: 1694 1694 1695 1695 >>> f = CommentForm(auto_id=False)