Merge pull request #3190 from Hachikooking/master

Correct API ROOT to enable parametered urls
This commit is contained in:
Tom Christie 2015-07-30 14:54:17 +01:00
commit 1f50f08f28

View File

@ -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)
) )