﻿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
15180	reverse doesn't check default_args	olaf	nobody	"Lets say we have the following urls:
{{{
    (r'^photos/?$', 'views.photo_index', {'lang':'en'}, ""photo_index""),
    (r'^fotos/?$', 'views.photo_index', {'lang':'de'}, ""photo_index""),
    (r'^photo/(?P<photo_id>[\d]+)$', 'views.photo', {""lang"":""en""} ,""photo""),
    (r'^foto/(?P<photo_id>[\d]+)$', 'views.photo', {""lang"":""de""} ,""photo""),
}}}

When I want to get the specific URL for a German visitor I wan't to just to get the reverse for photo an add a keyword argument {'lang':'de'}. It is very much writing to write for each language a different wrapper function. You also would need to write a bunch of if-else statements to select the correct one.

I saw that also some else expected this and asked a question at stackoverflow about this, but he got only workaround as answers. I added a few lines to correct behavior, and I hope this is useful for someone. I am not sure, if I broke something so it would be nice someone else could test this code also.
"	New feature	closed	Core (URLs)	1.3-beta	Normal	duplicate	resolve default_args		Accepted	1	0	1	0	0	0
