Docs suggest wrong template_name_suffix
|Reported by:||jnns||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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".
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 4 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