Re: Custom attributes of RadioSelect widget choices

2008-09-29 Thread globophobe
On Sep 30, 6:08 am, davenaff <[EMAIL PROTECTED]> wrote: > 2. If not, how have people solved this in the past (subclass the > RadioSelect widget?) Take a look at django.forms.widgets.RadioFieldRenderer Subclass it, specifically the 'render' method. Then add the 'render' param to your form's Radio

Custom attributes of RadioSelect widget choices

2008-09-29 Thread davenaff
Hi, I want to provide unique attributes to each radio button in a RadioSelect widget to integrate with several AJAX effects. Ideally the code produce would look something like this: All books In print books Out of print books Only these books Basically, when the last radio button