Opened 18 years ago
Closed 18 years ago
#5577 closed (worksforme)
description incomplete in http://www.djangoproject.com/documentation/0.96/tutorial04/
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | 0.96 | 
| Severity: | Keywords: | ||
| 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 tutorial states:
"Similarly, the object_list generic view uses a template called <app name>/<model name>_list.html. Thus, rename polls/index.html to polls/poll_list.html."
The html-file has to be edited: the variable "latest_poll_list" has to be substituted by "object_list".
A similar change is required to poll_detail.html.
  Note:
 See   TracTickets
 for help on using tickets.
    
Scroll down a little bit further and you'll see:
"In previous parts of the tutorial, the templates have been provided with a context that contains the
pollandlatest_poll_listcontext variables. However, the generic views provide the variablesobjectandobject_listas context. Therefore, you need to change your templates to match the new context variables. Go through your templates, and modify any reference tolatest_poll_listtoobject_list, and change any reference topolltoobject."