Forms clean documentation omits essential
|Reported by:||Owned by:||nobody|
|Severity:||Keywords:||forms, newforms, clean|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Needed to dig into the source but the current documentation does not reflect that clean_FOO needs to return the cleaned value.
As in forms.py:
value = getattr(self, 'clean_%s' % name)()
self.cleaned_data[name] = value
So attached is a patch for the forms.txt documentation.