Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#19520 closed Bug (fixed)

Docs suggest wrong template_name_suffix

Reported by: jnns Owned by: nobody
Component: Documentation Version: master
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 Changed 3 years ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by Tim Graham <timograham@…>

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

In 0d3f16b12ea92aff208c4bb88d342eb787c92f71:

Fixed #19520 - Corrected some misleading docs about template_name_suffix.

Thanks jnns for the report.

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

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