Re: Iterating over a field using widget=ChekboxSelectMultiple

2009-04-08 Thread Jim
For now, there's no > particularly good workaround beyond writing your own widget or manually > writing the HTML. Thank you, Malcolm. Jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Iterating over a field using widget=ChekboxSelectMultiple

2009-04-07 Thread Malcolm Tredinnick
On Tue, 2009-04-07 at 17:28 -0700, Jim wrote: > Hello, > > I have this form. > > class SearchForm(forms.Form): > search=forms.CharField(widget=widgets.SearchWidget) > search_type=forms.MultipleChoiceField > (widget=CheckboxSelectMultiple,choices=[('a','A'),('b','B'),]) > > In the

Iterating over a field using widget=ChekboxSelectMultiple

2009-04-07 Thread Jim
Hello, I have this form. class SearchForm(forms.Form): search=forms.CharField(widget=widgets.SearchWidget) search_type=forms.MultipleChoiceField (widget=CheckboxSelectMultiple,choices=[('a','A'),('b','B'),]) In the template I want to say something like this. Search {{fm.search}}