#16149: Allow disabling choices in a <select>
---------------------------+-------------------------------
Reporter: scjody | Owner: nobody
Type: Uncategorized | Status: new
Milestone: | Component: Uncategorized
Version: 1.3 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
---------------------------+-------------------------------
We need to be able to disable choices in a <select>, which is done by
setting the disabled attribute on the <option> tag, for example:
{{{<option value="bananas" disabled="disabled">Bananas</option>}}}
Currently we're doing this by subclassing the Select widget:
http://djangosnippets.org/snippets/2453/
It would be nice if the built in Select widget supported this. One way
would be to replace the existing render_option method with what I've
written, and I can prepare a patch if desired, but this approach changes
the format of the "choices" data structure to something that won't be
understood by other widgets. Perhaps these widgets should be improved
too, but I don't want to do this unless the patch has a chance of being
accepted.
--
Ticket URL: <https://code.djangoproject.com/ticket/16149>
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 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.