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: | 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)
Note:
See TracTickets
for help on using tickets.
Initial implementation (my first django patch, so be gentle) :)