Django

Code

Ticket #5198 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

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

Reported by: gwilson Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 1

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

url_dispatch.diff (0.8 kB) - added by Simon G. <dev@simon.net.nz> on 08/18/07 10:02:53.

Change History

08/17/07 16:39:59 changed by Collin Grady <cgrady@the-magi.us>

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

08/17/07 22:47:57 changed 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.

08/18/07 10:02:53 changed by Simon G. <dev@simon.net.nz>

  • attachment url_dispatch.diff added.

08/18/07 10:03:12 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch set to 1.
  • has_patch set to 1.
  • stage changed from Unreviewed to Accepted.

How's this?

08/19/07 05:15:12 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #5198 (url templatetag documentation has no example for views that take multiple arguments)




Change Properties
Action