#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 , 13 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
In 0d3f16b12ea92aff208c4bb88d342eb787c92f71: