Merge pull request #333 from brad/ticket_18917

clarify clean_<field> docs, ticket #18917
This commit is contained in:
James Bennett 2012-09-07 12:00:01 -07:00
commit 46249061d6
1 changed files with 2 additions and 3 deletions

View File

@ -70,9 +70,8 @@ overridden:
formfield-specific piece of validation and, possibly, formfield-specific piece of validation and, possibly,
cleaning/normalizing the data. cleaning/normalizing the data.
Just like the general field ``clean()`` method, above, this method This method should return the cleaned value obtained from cleaned_data,
should return the cleaned data, regardless of whether it changed regardless of whether it changed anything or not.
anything or not.
* The Form subclass's ``clean()`` method. This method can perform * The Form subclass's ``clean()`` method. This method can perform
any validation that requires access to multiple fields from the form at any validation that requires access to multiple fields from the form at