I think the problem is from around:
{% for choice in question.choice_set.all %}
{{ choice.choice_text
}}
{% endfor %}
This is because i tested outside the loop and i got the radio button, but
the whole idea was to loop through the questions and assign a button for
the choices.
--
You
Hi guys,
I have been following the django tutorials up to part 4 on the polls
application. My details template only displays the vote submit button but
the radio buttons for making choices won't show. I have been battling with
this for some hours now and i need help or some pointers. Thanks.
2 matches
Mail list logo