﻿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
3525	{% url path.to.view %} fails with multiple patterns for the same function	omat@…	Malcolm Tredinnick	"If there are multiple patterns matching the same view function, it seems like, only the first match is considered. 

Lets say a function has an optional ""id"" parameter which defaults to None and below is the patterns pointing that function.

{{{
#!python
(r'^(?P<slug>[-\w]+)/$', views.myfunc),

(r'^(?P<slug>[-\w]+)/(?P<id>\d+)/$', views.myfunc),
}}}

In that case,

{{{
#!python
{% url views.myfunc slug=something,id=someint %}
}}}

fails to match anything, where we can expect it to match the second
pattern and return ""/something/someint/""
"		assigned	Template system	dev			url, template		Design decision needed	0	0	0	0	0	0
