#21613 closed Cleanup/optimization (fixed)
Misleading hardcoded input id in tutorial
Reported by: | Claude Paroz | Owned by: | AnneTheAgile |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
https://docs.djangoproject.com/en/dev/intro/tutorial04/
That means, when somebody selects one of the radio buttons and submits the form, it’ll send the POST data choice=3.
Apparently, nothing forces the value to be 3. We should rephrase this sentence.
Change History (7)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 11 years ago
See Pull Request,
https://github.com/django/django/pull/2078
My comment #21613 , Clarified the previously mysterious magic constant '3'. I researched a bit and there are '3' default choices available, https://docs.djangoproject.com/en/dev/intro/tutorial02/ .
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 by , 11 years ago
yay, I'm glad the fix is approved. I was thinking of just writing "#" as done in the accepted change, but thought maybe it wouldn't be accepted and so was trying to rewrite the text around it. I deleted my branch. Thank you for your patience with me and question-answering !
Oh, credit to Bruno Brouard for spotting this issue.