﻿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
15723	Document limitations of reverse	zeroos	nobody	"In urls.py I have the following line:

{{{
...
(r'^json/calendar/((?P<course>[\d,]+)/)?$', json.calendar_block),
...
}}}


When I try to reverse this url this way:

{{{
reverse(json.calendar_block, kwargs={'course': 1})
}}}

I get an error saying that it cannot reverse this.

When I change the line in urls.py to:
{{{
...
(r'^json/calendar/(?P<course>[\d,]+)/$', json.calendar_block),
...
}}}

everything works great.


I would assume that it is not a bug, but it worked before and suddenly, after pulling the newest Django release from svn it stopped."	Cleanup/optimization	closed	Documentation	dev	Normal	needsinfo	reverse regexp		Accepted	0	0	0	0	0	0
