This commit is contained in:
Michel Wilson 2015-03-04 21:18:05 +00:00
commit e192cb39d1

View File

@ -172,10 +172,11 @@ class SimpleRouter(BaseRouter):
initkwargs = route.initkwargs.copy()
initkwargs.update(method_kwargs)
url_path = initkwargs.pop("url_path", None) or methodname
name = replace_methodname(route.name, initkwargs.pop("name", url_path))
ret.append(Route(
url=replace_methodname(route.url, url_path),
mapping=dict((httpmethod, methodname) for httpmethod in httpmethods),
name=replace_methodname(route.name, url_path),
name=name,
initkwargs=initkwargs,
))