1
0
mirror of https://github.com/django/django.git synced 2025-03-13 02:40:47 +00:00

[1.6.x] Fixed #21834 -- Clarifed usage of template_name in tutorial part 4.

refs #21195 on master.
This commit is contained in:
Tim Graham 2013-10-01 10:08:36 -04:00
parent fcc290eda9
commit a292ad1105

View File

@ -269,7 +269,7 @@ two views abstract the concepts of "display a list of objects" and
By default, the :class:`~django.views.generic.detail.DetailView` generic
view uses a template called ``<app name>/<model name>_detail.html``.
In our case, it'll use the template ``"polls/poll_detail.html"``. The
In our case, it would use the template ``"polls/poll_detail.html"``. The
``template_name`` attribute is used to tell Django to use a specific
template name instead of the autogenerated default template name. We
also specify the ``template_name`` for the ``results`` list view --