#30534: ModelForms: Allow `cleaned_data` to overwrite fields' default values
               Reporter:  RobertAKARobin  |          Owner:  nobody
                   Type:  New feature     |         Status:  new
              Component:  Forms           |        Version:  2.2
               Severity:  Normal          |       Keywords:  forms, models
           Triage Stage:  Unreviewed      |      Has patch:  0
    Needs documentation:  0               |    Needs tests:  0
Patch needs improvement:  0               |  Easy pickings:  1
                  UI/UX:  0               |
 See comments here:

 Currently, when submitting a form, if 'some_field' isn't in the data
 payload (e.g. it wasn't included in the form, perhaps because its value is
 derived from another field), and 'some_field' has a default value on the
 model, it cannot be overwritten with 'self.cleaned_data'.

 This does not really follow the paradigm of modifying data in
 'cleaned_data'. It requires the user to copy and overwrite the raw data
 submitted with the form.

Ticket URL: <https://code.djangoproject.com/ticket/30534>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to