Changes between Initial Version and Version 1 of Ticket #3896


Ignore:
Timestamp:
Apr 1, 2007, 7:52:13 PM (18 years ago)
Author:
James Bennett
Comment:

(cleaning up code formatting in description)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3896 – Description

    initial v1  
    11newforms has this bit of code in the full_clean function:
    22
     3{{{
    34            try:
    45                value = field.clean(value)
     
    910            except ValidationError, e:
    1011                errors[name] = e.messages
     12}}}
    1113
    1214Why is value not passed to the clean_%s function? Since it is required to return the accepted value, it is odd that it is forced to look it up. Basicly a dictionary read and assignment is required with no obvious gain. Logically I find it odd as well that clean_data contains values that are not cleaned fully yet.
Back to Top