Iterate over MultipleChoiceList in Template

2009-05-23 Thread Retro486
I'm using the CheckboxSelectMultiple widget in a MultipleChoiceField and I need more control over where the field labels go and the field themselves. So far this is the only field type I've had a problem with. I've spent at least a few hours trying to find info on the web to no avail. I can't fig

Re: Iterate over MultipleChoiceList in Template

2009-05-25 Thread Retro486
le to get it > working:http://stackoverflow.com/questions/733880/iterate-over-choices-in-che...http://www.zoia.org/blog/2007/03/24/iterating-over-items-of-selection... > > Please post if you find a solution and I will if I get it first  :-) > > Cheers. > > On May 23

Re: Iterate over MultipleChoiceList in Template

2009-05-25 Thread Retro486
go the "normal fix" route but I hate relying on things that can be voluntarily disabled). Thanks again, -R On May 25, 5:39 pm, Retro486 wrote: > Thanks, Richard. I'll take a look at the links you sent and see if I > can't work something out. In the meantime I've

Re: Iterate over MultipleChoiceList in Template

2009-05-27 Thread Retro486
force_unicode(w)) > for w in self])) > > In the form code that is returned to the view: > class myform(forms.ModelForm): >     myfield = forms.IntegerField(widget = forms.RadioSelect(renderer = > CustomRadioRenderer, choices=Profile.MYFIELD_CHOICES)) > > Hope this helps you. > &g