Opened 4 years ago

Closed 4 years ago

#18708 closed Bug (invalid)

Typo in Naming URL Patterns

Reported by: newtonsbm Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns
There is a typo in the example of using the named urls.
It is written:

{% url 'arch-summary' 1945 %}
{% url 'full-archive' 2007 %}

And should be:

{% url arch-summary 1945 %}
{% url full-archive 2007 %}

Without the single quotes.

Change History (1)

comment:1 Changed 4 years ago by aastrand

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

You refer to the development version of the documentation, but you file a bug against version 1.4. This was actually updated to the present notation (with single quotes) recently in #18625.

Note: See TracTickets for help on using tickets.
Back to Top