#25078: Support disabled fields
---------------------------------------+------------------------
               Reporter:  claudep      |          Owner:  nobody
                   Type:  New feature  |         Status:  new
              Component:  Forms        |        Version:  1.8
               Severity:  Normal       |       Keywords:
           Triage Stage:  Unreviewed   |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+------------------------
 I'd like to propose adding support for disabled form fields in Django.
 If it were only a matter of adding widget attributes, like it's feasible
 with the `readonly` attribute, it wouldn't need special treatment.
 However, the `disabled` attribute is particular in that user agents are
 not transmitting their values when POSTing form data.

 A typical use case is a ModelForm where you'd like to disable some fields
 while still displaying all values. So currently, if you simply add
 `disabled` to the widget attributes, you'll have a problem: the form will
 clear the field as the value is not present in the data (and the field is
 not in excluded fields).

--
Ticket URL: <https://code.djangoproject.com/ticket/25078>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.5113c6fdc8e06d1d23790096f7ccda38%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to