Opened 9 years ago

Closed 9 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: master
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: UI/UX:

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@…> 9 years ago.
Initial implementation (my first django patch, so be gentle) :)

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by glimmer <glimmer@…>

Attachment: dynamic-url-tag.diff added

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

comment:1 Changed 9 years ago by Øyvind Saltvik <oyvind@…>

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: duplicate
Status: newclosed

Duplicate of #3769

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