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 %}
Attachments (1)
Change History (5)
comment:1 by , 17 years ago
comment:2 by , 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 , 17 years ago
Attachment: | url_dispatch.diff added |
---|
comment:3 by , 17 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
How's this?
comment:4 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
http://www.djangoproject.com/documentation/templates/#url