mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 13:30:12 +03:00
Merge b067aea79f
into f7917928c0
This commit is contained in:
commit
e192cb39d1
|
@ -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,
|
||||
))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user