mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #18625 -- Removed old-style use of url tag
from the documentation.
This commit is contained in:
parent
c57abd3c29
commit
fb46f243b4
3 changed files with 6 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue