#4412: Allow Select and SelectMultiple widgets to render HTML optgroups from
nested choices structures
--------------------------------------+-------------------------------------
Reporter: mrmachine | Owner: SmileyChris
Status: assigned | Milestone: 1.0 beta
Component: django.newforms | Version: SVN
Resolution: | Keywords: newforms select widget
nested choices optgroup
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by SmileyChris):
This new patch allows this to continue with the old admin (even if it is
going to be short-lived - i needed it for now) and also makes
`MultipleSelect` work. I abstracted some of the widget rendering logic
between `Select` and `MultipleSelect` which also meant making
`MultipleSelect` a subclass of `Select`, which I always thought it should
have been anyway...
Added tests for the new `MultipleSelect` functionality.
--
Ticket URL: <http://code.djangoproject.com/ticket/4412#comment:11>
Django Code <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
-~----------~----~----~----~------~----~------~--~---