Fixed #18625 -- Removed old-style use of url tag

from the documentation.
This commit is contained in:
Aymeric Augustin 2012-07-15 11:19:00 +02:00
parent c57abd3c29
commit fb46f243b4
3 changed files with 6 additions and 6 deletions

View file

@ -704,8 +704,8 @@ target each pattern individually by using its name:
.. code-block:: html+django
{% url arch-summary 1945 %}
{% url full-archive 2007 %}
{% url 'arch-summary' 1945 %}
{% url 'full-archive' 2007 %}
Even though both URL patterns refer to the ``archive`` view here, using the
``name`` parameter to ``url()`` allows you to tell them apart in templates.