Opened 17 years ago
Closed 17 years ago
#10980 closed (duplicate)
url tag viewname should be treated as string-or-variable to allow dynamic viewnames
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Template system | Version: | 1.0 |
| Severity: | Keywords: | url tag, dynamic viewnames | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I think the url tag should allow dynamic viewnames in the following way (dynamic_view_name is a context variable):
{% url dynamic_view_name args,kwargs=values %}
This means existing url tags will now be:
{% url "static_view_name" args,kwargs=values %}
Attachments (1)
Change History (3)
by , 17 years ago
| Attachment: | url_tag_dynamic_viewnames.patch added |
|---|
comment:2 by , 17 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
This is a straight-up duplicate of the above-mentioned tickets.
Note:
See TracTickets
for help on using tickets.
Patch to implement described behavior