#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:
Needs tests: Patch needs improvement:
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 Changed 20 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

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