Opened 5 years ago

Closed 5 years ago

Last modified 3 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: UI/UX:

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 Changed 5 years ago by coleifer

  • Component changed from Uncategorized to Documentation
  • Needs documentation set
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by russellm

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 5 years ago by russellm

  • milestone set to 1.2

comment:4 Changed 5 years ago by timo

refers to /ref/templates/builtins/

comment:5 Changed 5 years ago by kmtracey

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:6 Changed 5 years ago by kmtracey

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

r12652 from trunk.

comment:7 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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