Fixed #9059: Corrected some markup in tutorial 4 that incorrectly identified a template variable as a function. Thanks to zen for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2008-09-14 08:28:55 +00:00
parent a8d2810be5
commit 7931da87ec
1 changed files with 2 additions and 2 deletions

View File

@ -268,8 +268,8 @@ context that contains the ``poll`` and ``latest_poll_list`` context variables.
However, the generic views provide the variables ``object`` and ``object_list``
as context. Therefore, you need to change your templates to match the new
context variables. Go through your templates, and modify any reference to
``latest_poll_list`` to :func:`~django.views.generic.list_detail.object_list`,
and change any reference to ``poll`` to ``object``.
``latest_poll_list`` to ``object_list``, and change any reference to ``poll``
to ``object``.
You can now delete the ``index()``, ``detail()`` and ``results()`` views
from ``polls/views.py``. We don't need them anymore -- they have been replaced