Opened 17 years ago

Closed 17 years ago

#5198 closed (fixed)

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

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

Description

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 path.to.some_view arg1,arg2,name1=value1 %}

http://www.djangoproject.com/documentation/url_dispatch/

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

comment:2 by Gary Wilson, 17 years ago

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

by Simon G. <dev@…>, 17 years ago

Attachment: url_dispatch.diff added

comment:3 by Simon G. <dev@…>, 17 years ago

Has patch: set
Patch needs improvement: set
Triage Stage: UnreviewedAccepted

How's this?

comment:4 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(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