﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3668	URL tag should accept variable, a quoted literal	yary h <not.com@…>	Adrian Holovaty	"I'm building up menus in django, and wanted a construct like this: 
[[[
{% for item in menu %} 
<a href=""{% url item.view%}"">{{item.label}}</a> 
]]]
but that doesn't work, because there's no view ""item.view"" 

That looks like a shortcoming/inconsistancy with the syntax of the URL tag.  With most tags, an unquoted item gets looked up, and a quoted item is used as-is. Here, there's no way to look up the first argument to URL. 

Suggested solution: require quotes for a literal (eg [[[{% url 'myapp.views.summarize_widgets' %}]]], and allow view names to be passed with the usual django syntax (eg [[[{% url item.some_view %}]]])"		closed	Template system	dev		duplicate	URL tag	not.com@…	Design decision needed	0	0	0	0	0	0
