mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Merge pull request #3190 from Hachikooking/master
Correct API ROOT to enable parametered urls
This commit is contained in:
commit
1f50f08f28
|
@ -291,6 +291,8 @@ class DefaultRouter(SimpleRouter):
|
||||||
try:
|
try:
|
||||||
ret[key] = reverse(
|
ret[key] = reverse(
|
||||||
url_name,
|
url_name,
|
||||||
|
args=args,
|
||||||
|
kwargs=kwargs,
|
||||||
request=request,
|
request=request,
|
||||||
format=kwargs.get('format', None)
|
format=kwargs.get('format', None)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user