#10745: url template tag should accept a varible for view name -----------------------------+---------------------------------------------- Reporter: Soviut | Owner: nobody Status: new | Milestone: 1.1 Component: Template system | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------------+---------------------------------------------- The {% url %} tag only accepts "template strings" as view name/named url. I propose that the view name be a django.template.Variable and resolve() on render.
There are two reasons for this; Firstly, if you accidentally put quotes around the view name a very cryptic template syntax error is raised. Secondly, I've encountered several occasions where it would be useful to be able to pass a view name, or named url, to the url tag as a variable, but found it wouldn't evaluate. -- Ticket URL: <http://code.djangoproject.com/ticket/10745> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---