#23645 closed Uncategorized (invalid)
Critical technical typo error in documentation
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.