Code

Changes between Initial Version and Version 1 of Ticket #12960


Ignore:
Timestamp:
02/25/10 02:41:42 (4 years ago)
Author:
russellm
Comment:

Closing invalid because I can't understand what problem you are describing. You seem to be describing some sort of regression with cleaned_data handling, but then you talk about the clean method on a *model*, which suggests you mean model validation.

An example would be extremely helpful. Please reopen if you care to provide sample code, along with usage, and a description of what is happening, what should be happening (and what used to happen if this is actually a regression).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12960

    • Property Status changed from new to closed
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
    • Property Resolution changed from to invalid
  • Ticket #12960 – Description

    initial v1  
    22 
    33Sequence of calls in BaseForm.full_clean() is following: 
    4 1. - _clean_fields - which calls clean on fields and creates instance with cleaned values 
    5 2. - _clean_form - which class clean on model, assign return to form.cleaned_data but instance is not updated 
    6 3. - finally save_instance(construct=False) is called (in previous version of Django model instance was created here from correct cleaned_data) 
     4 1. _clean_fields - which calls clean on fields and creates instance with cleaned values  
     5 2. _clean_form - which class clean on model, assign return to form.cleaned_data but instance is not updated  
     6 3. finally save_instance(construct=False) is called (in previous version of Django model instance was created here from correct cleaned_data) 
    77 
    88