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
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
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
3 matches
Mail list logo