Opened 11 years ago

Closed 11 years ago

#21834 closed Bug (fixed)

A simple typo to be fixed

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In https://docs.djangoproject.com/en/1.6/intro/tutorial04/

class DetailView(generic.DetailView):
    model = Poll
    template_name = 'polls/detail.html'

By default, the DetailView generic view uses a template called <app name>/<model name>_detail.html. In our case, it’ll use the template "polls/poll_detail.html". The template is 'polls/detail.html' as indicated in the code.

The bold part should be just detail

Change History (1)

comment:1 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: newclosed

In 45535c8a4cba200cd610010ec1e2d515de6c2475:

[1.5.x] Fixed #21834 -- Clarifed usage of template_name in tutorial part 4.

Backport of a292ad1105 from stable/1.6.x

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