> The polls,detail.html is: > > <h1>{{ question.question_text }}</h1> > > {% if error_message %}<p><strong>{{ error_message }}</strong></p> > {% endif %} > > <form action="{% url 'polls:vote' question.id %}" method="post"> > {% csrf_token %} > > {% for choice in question.choice_set.all %} > <input type="radio" name="choice" > id="choice{{forloop.counter }}" > value"{{ choice.id }}" />
It looks like your value attribute is missing an equals (=) sign. I think that the value is set to 'on' if the box is selected by the user and you haven't specified a value attribute. If that's not it, can you post the entire traceback? This is an error from within the Django framework itself, likely from receiving a str value when it was expecting an int. The full traceback will hopefully tell us what portion of your code made the initial call. -James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWu76QWG4WTzr57T3euwRvi1eDwfFiUAT9q1wiWDSiP1Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.