aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/urlpatterns.py
diff options
context:
space:
mode:
authorTom Christie2013-01-19 18:39:39 +0000
committerTom Christie2013-01-19 18:39:39 +0000
commit771821af7d8eb6751d6ea37eabae7108cebc0df0 (patch)
tree10cd6a2671b7719810f7a3cab4518e7a9cd2f223 /rest_framework/urlpatterns.py
parent69083c3668b363bd9cb85674255d260808bbeeff (diff)
downloaddjango-rest-framework-771821af7d8eb6751d6ea37eabae7108cebc0df0.tar.bz2
Include kwargs in included URLs
Diffstat (limited to 'rest_framework/urlpatterns.py')
-rw-r--r--rest_framework/urlpatterns.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rest_framework/urlpatterns.py b/rest_framework/urlpatterns.py
index 162f2314..0f210e66 100644
--- a/rest_framework/urlpatterns.py
+++ b/rest_framework/urlpatterns.py
@@ -23,10 +23,11 @@ def apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required):
regex = urlpattern.regex.pattern
namespace = urlpattern.namespace
app_name = urlpattern.app_name
+ kwargs = urlpattern.default_kwargs
patterns = apply_suffix_patterns(urlpattern.url_patterns,
suffix_pattern,
suffix_required)
- ret.append(url(regex, include(patterns, namespace, app_name)))
+ ret.append(url(regex, include(patterns, namespace, app_name), kwargs))
return ret