Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#19520 closed Bug (fixed)

Docs suggest wrong template_name_suffix

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

Description

The page about generic class based editing views state that adding a template name suffix should end with ".html" whereas this would result in django looking for a template ending with ".html.html".

template_name_suffix

The DeleteView page displayed to a GET request uses a template_name_suffix of '_confirm_delete.html'. For example, changing this attribute to '_check_delete.html' for a view deleting objects for the the example Author model would cause the the default template_name to be 'myapp/author_check_delete.html'.

Change History (3)

comment:1 by Tim Graham, 12 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Tim Graham <timograham@…>, 12 years ago

Resolution: fixed
Status: newclosed

In 0d3f16b12ea92aff208c4bb88d342eb787c92f71:

Fixed #19520 - Corrected some misleading docs about template_name_suffix.

Thanks jnns for the report.

comment:3 by Tim Graham <timograham@…>, 12 years ago

In 520a3f090c0541ddfaf3e949ca1edc6a113b6305:

[1.5.X] Fixed #19520 - Corrected some misleading docs about template_name_suffix.

Thanks jnns for the report.

Backport of 0d3f16b12e from master

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