Opened 17 years ago

Closed 17 years ago

#6144 closed (duplicate)

URL template tag does not support dynamic named URLs via the template context

Reported by: glimmer <glimmer@…> Owned by: nobody
Component: Template system Version: dev
Severity: Keywords: named urls url template tag dynamic
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As it stands today the {% url %} template tag does not support dynamic named URLs passed in the variables in the template context. I'm proposing that the URL tag to support {% url context_var args %} syntax, with the context_var being a named URL pattern. In my opinion it would greatly improve on DRY principles for the {% url %} template tag.

Attachments (1)

dynamic-url-tag.diff (804 bytes ) - added by glimmer <glimmer@…> 17 years ago.
Initial implementation (my first django patch, so be gentle) :)

Download all attachments as: .zip

Change History (2)

by glimmer <glimmer@…>, 17 years ago

Attachment: dynamic-url-tag.diff added

Initial implementation (my first django patch, so be gentle) :)

comment:1 by Øyvind Saltvik <oyvind@…>, 17 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #3769

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