Index: docs/newforms.txt =================================================================== --- docs/newforms.txt (revision 6184) +++ docs/newforms.txt (working copy) @@ -981,6 +981,7 @@ >>> f.errors {'url': [u'This field is required.'], 'name': [u'This field is required.']} + ``widget`` ~~~~~~~~~~ @@ -1052,6 +1053,18 @@ displayed for unbound forms, and they're not used as fallback values if a particular value isn't provided. +Note that ``initial`` values are *not* cleaned. It is supposed that values are right, unlike ``data`` values:: + + >>> class NewsForm(forms.Form): + ... date = forms.DateField() + ... title = forms.CharField() + >>> f = NewsForm(initial={'date': 'not_a_date'}) + >>> f.as_table() +