From 2109f552443855313edbcf50ac919ef9b7e5f71a Mon Sep 17 00:00:00 2001 From: "clemence.lop" Date: Tue, 28 Jul 2015 15:55:49 +0200 Subject: [PATCH 1/2] Correct API ROOT to enable parametered urls --- rest_framework/routers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rest_framework/routers.py b/rest_framework/routers.py index 380f3bb4f..bba174e67 100644 --- a/rest_framework/routers.py +++ b/rest_framework/routers.py @@ -291,6 +291,7 @@ class DefaultRouter(SimpleRouter): try: ret[key] = reverse( url_name, + kwargs=kwargs, request=request, format=kwargs.get('format', None) ) From d2ae7d4fcd96e26fc102ad581859cc72a9a7551c Mon Sep 17 00:00:00 2001 From: Hachikooking Date: Wed, 29 Jul 2015 14:43:25 +0200 Subject: [PATCH 2/2] Add args to the function call for unnamed parameters --- rest_framework/routers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rest_framework/routers.py b/rest_framework/routers.py index bba174e67..e72c4987a 100644 --- a/rest_framework/routers.py +++ b/rest_framework/routers.py @@ -291,6 +291,7 @@ class DefaultRouter(SimpleRouter): try: ret[key] = reverse( url_name, + args=args, kwargs=kwargs, request=request, format=kwargs.get('format', None)