#23645 closed Uncategorized (invalid)
Critical technical typo error in documentation
Reported by: | dexter aparicio | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.7 |
Severity: | Normal | Keywords: | question_id |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The error is in "« Writing your first Django app, part 3" on section "A shortcut: get_object_or_404()". In the code snippet of polls/views.py for the detail() function, the return statement should be changed from:
return render(request, 'polls/detail.html', {'question': question})
to
return render(request, 'polls/detail.html', {'question': question_id})
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 10 years ago
comment:4 by , 10 years ago
Resolution: | fixed → invalid |
---|
Note:
See TracTickets
for help on using tickets.
Sorry, there was no typo in the documentation at all. I am promptly closing this ticket.