Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#12946 closed (fixed)

{% url %} tag docs show an invalid example mixing args and kwargs, which reverse() doesn't allow

Reported by: coleifer Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This is the example:

{% url path.to.some_view arg1,arg2,name1=value1 %}

if you check out reverse() bits it'll throw a ValueError in this case

http://code.djangoproject.com/browser/django/trunk/django/core/urlresolvers.py#L271

Change History (7)

comment:1 by coleifer, 14 years ago

Component: UncategorizedDocumentation
Needs documentation: set

comment:2 by Russell Keith-Magee, 14 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Russell Keith-Magee, 14 years ago

milestone: 1.2

comment:4 by Tim Graham, 14 years ago

refers to /ref/templates/builtins/

comment:5 by Karen Tracey, 14 years ago

Resolution: fixed
Status: newclosed

(In [12652]) Fixed #12946: Removed an invalid example of url tag usage from the docs.

comment:6 by Karen Tracey, 14 years ago

(In [12653]) [1.1.X] Fixed #12946: Removed an invalid example of url tag usage from the docs.

r12652 from trunk.

comment:7 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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