﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10914	"The chapter ""Write a simple form"" produces code with bad Choice.DoesNotExist handling"	tobami	nobody	"If you code the “polls/detail.html” template and the ""mysite/polls/views.py"" vote() function as in the tutorial, after voting without choosing an option, a DoesNotExist exception is raised and the poll voting form is redisplayed with a ""You didn't select a choice."" message. The problem is that you cannot try to vote a second time, because the redisplayed page is not ""polls/1/"" but ""polls/1/vote/"".

To reproduce:[[BR]]
- Complete tutorial 1 to 4 (for Django 1.0.2)[[BR]]
- go to ""http://localhost:8000/polls/1/"" [[BR]]
- Click vote without selecting a Choice[[BR]]
- The page will be polls/1/vote/, not polls/1/ again[[BR]]
- Try to vote (or not, just click again vote)[[BR]]
[[BR]]


It fails because it tries to access ""polls/1/vote/vote/""[[BR]]


"		closed	Documentation	1.0		duplicate			Unreviewed	0	0	0	0	0	0
