Kaydet (Commit) 1b961e8e authored tarafından Timo Graham's avatar Timo Graham

Fixed #15153 - removed obsolete sentence in tutorial; thanks LeSphinx for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst a981f5b9
...@@ -306,11 +306,6 @@ You can now delete the ``index()``, ``detail()`` and ``results()`` ...@@ -306,11 +306,6 @@ You can now delete the ``index()``, ``detail()`` and ``results()``
views from ``polls/views.py``. We don't need them anymore -- they have views from ``polls/views.py``. We don't need them anymore -- they have
been replaced by generic views. been replaced by generic views.
The ``vote()`` view is still required. However, it must be modified to
match the new context variables. In the
:func:`~django.shortcuts.render_to_response` call, rename the ``poll``
context variable to ``object``.
The last thing to do is fix the URL handling to account for the use of 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 generic views. In the vote view above, we used the
:func:`~django.core.urlresolvers.reverse` function to avoid :func:`~django.core.urlresolvers.reverse` function to avoid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment