﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20565	Generic view descriptions should give template examples	david.reitter@…	Baptiste Darthenay	"When reading the docs for generic views, I wonder what the templates should like like.

It does not seem like standard templates are provided (why not?), but as a minimum, the documentation should give an example of a template for each view class.

The template variables are idiosyncratic w.r.t. the view class, e.g., the ListView defines 'object_list' as a variable.  So why not give this template example:


{{{
{% block content %}
<h1>Exams</h1>
    <table>
        {% for o in object_list %}
           <tr><td>{{ o }}</td><td><a href=""{% url 'exam_update' o.id %}"">edit</a>&nbsp;&nbsp;<a href=""{% url 'exam_delete' o.id %}"">del</a></td></tr>
        {% endfor %}
    </table>
{% endblock %}
}}}


Right now, I am looking for how to correctly implement the delete confirmation template.  

https://docs.djangoproject.com/en/dev/ref/class-based-views/generic-editing/#django.views.generic.edit.DeleteView"	New feature	closed	Documentation	dev	Normal	fixed		bmispelon@… Baptiste Darthenay	Accepted	1	0	0	0	1	0
