Google Groups Home
Help | Sign in
Message from discussion Optgroups from nested choices in newforms (discussion of patch on #4412)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
James Bennett  
View profile
 More options May 29 2007, 4:56 am
From: "James Bennett" <ubernost...@gmail.com>
Date: Tue, 29 May 2007 03:56:03 -0500
Local: Tues, May 29 2007 4:56 am
Subject: Optgroups from nested choices in newforms (discussion of patch on #4412)
I noticed a patch sitting on #4412 tonight which seems interesting but
definitely needs a decision; the idea is that, rather than
implementing a separate widget or set of widgets to handle grouping of
options (via the HTML "optgroup" element), the Select and
SelectMultiple widgets should look at the structure of 'choices -- if
it has a nested structure of grouped choices, those should translate
into optgroups in the rendered widget.

Personally, I kind of like the simplicity of the approach and the fact
that it handles this use case without needlessly multiplying widgets,
so I'd give it a tentative +1.

--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google