Re: Iterable check boxes

2011-12-16 Thread Daniel Roseman
On Thursday, 15 December 2011 14:16:00 UTC, CrabbyPete wrote: > > According to the documentation I can iterate radio buttons > {% for radio in myform.beatles %} > > {{ radio }} > > {% endfor %} > > I want to do the same for checkboxes, but get > TemplateSyntaxError > Exception Value: > > Caug

Re: Iterable check boxes

2011-12-15 Thread Andre Terra
Your template doesn't match the form you provided, so I'm going to guess that what you need is {% myform.beatles.choices %} for the iterator. For the future, please try to post full tracebacks and the actual code. Good luck! Cheers, AT On Thu, Dec 15, 2011 at 12:16 PM, CrabbyPete wrote: > Ac

Iterable check boxes

2011-12-15 Thread CrabbyPete
According to the documentation I can iterate radio buttons {% for radio in myform.beatles %} {{ radio }} {% endfor %} I want to do the same for checkboxes, but get TemplateSyntaxError Exception Value: Caught TypeError while rendering: 'BoundField' object is not iterable My field is class