Changes between Initial Version and Version 1 of Ticket #12960


Ignore:
Timestamp:
Feb 25, 2010, 4:41:42 AM (15 years ago)
Author:
Russell Keith-Magee
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 Resolutioninvalid
    • Property Status newclosed
  • 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
Back to Top