Fixed #6890 -- Removed duplicate instruction to rename the `polls/detail.htm` template in tutorial part 4.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2008-03-29 15:48:13 +00:00
parent 165772f37e
commit a3747f23be
1 changed files with 6 additions and 7 deletions

View File

@ -266,9 +266,8 @@ from ``polls/views.py``. We don't need them anymore -- they have been replaced
by generic views. by generic views.
The ``vote()`` view is still required. However, it must be modified to match The ``vote()`` view is still required. However, it must be modified to match
the new templates and context variables. Change the template call from the new context variables. In the ``render_to_repsonse()`` call, rename the
``polls/detail.html`` to ``polls/poll_detail.html``, and pass ``object`` in the ``poll`` context variable to ``object``.
context instead of ``poll``.
The last thing to do is fix the URL handling to account for the use of generic The last thing to do is fix the URL handling to account for the use of generic
views. In the vote view above, we used the ``reverse()`` function to avoid views. In the vote view above, we used the ``reverse()`` function to avoid