Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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 dexter aparicio, 10 years ago

comment:2 by dexter aparicio, 10 years ago

Resolution: fixed
Status: newclosed

comment:3 by dexter aparicio, 10 years ago

Sorry, there was no typo in the documentation at all. I am promptly closing this ticket.

comment:4 by Jaap Roes, 10 years ago

Resolution: fixedinvalid
Note: See TracTickets for help on using tickets.
Back to Top