Opened 9 years ago

Closed 9 years ago

#5198 closed (fixed)

url templatetag documentation has no example for views that take multiple arguments

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


So its not clear whether template writer should separate arguments with spaces, commas, etc.

By the way, it's commas with no spaces in between. And from the docstring, is appears keyword arguments can be specified too (also not mentioned in the documentation):

{% url arg1,arg2,name1=value1 %}

Attachments (1)

url_dispatch.diff (869 bytes) - added by Simon G. <dev@…> 9 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by Collin Grady <cgrady@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 9 years ago by gwilson

Yeah, that would have been a good place to look :) I guess we should just link to that from the url_dispatch docs.

Changed 9 years ago by Simon G. <dev@…>

comment:3 Changed 9 years ago by Simon G. <dev@…>

  • Has patch set
  • Patch needs improvement set
  • Triage Stage changed from Unreviewed to Accepted

How's this?

comment:4 Changed 9 years ago by mtredinnick

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

(In [5939]) Added links from any reference to the url template tag to the appropriate place in the template tag documentation. Fixed #5198.

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