#12513: UnresolvableValidationError far too greedy
---------------------------------------------+------------------------------
          Reporter:  skyl                    |         Owner:  nobody
            Status:  new                     |     Milestone:        
         Component:  Forms                   |       Version:  SVN   
        Resolution:                          |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  0     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by Honza_Kral):

 I know what you mean, I just feel it's very wrong to have {{{ModelForm}}}
 validate and then fail horribly when calling {{{.save()}}} on it or on the
 model it produces. It maybe be backwards incompatible, but imo it would is
 a bug in 1.1.

 In your case you should pass in an instance with {{{primary_contact}}} and
 {{{user}}} already set or set it in your form's {{{.clean()}}} before call
 to {{{super.clean()}}}

 I leave it to core devs to decide this.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12513#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to