summaryrefslogtreecommitdiff
path: root/tests/urlpatterns/path_base64_urls.py
diff options
context:
space:
mode:
authorEric Brandwein <brandweineric@gmail.com>2018-09-20 15:24:36 -0300
committerTim Graham <timograham@gmail.com>2018-10-04 11:42:27 -0400
commitb0b4aac555711ae9116f9b54c24ec7e43a0971e9 (patch)
tree7f2972250916b7f7e714ee5baa19268402cc1d90 /tests/urlpatterns/path_base64_urls.py
parentb8b1d8cad6ce5b15f6527aa14cc81ad7a0d00efe (diff)
Fixed #29775 -- Fixed URL converters in a nested namespaced path.
When using include() without namespaces of some urlpatterns that have an include() with namespace, the converters of the parent include() weren't being used to convert the arguments of reverse().
Diffstat (limited to 'tests/urlpatterns/path_base64_urls.py')
-rw-r--r--tests/urlpatterns/path_base64_urls.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/urlpatterns/path_base64_urls.py b/tests/urlpatterns/path_base64_urls.py
index 9b69f929fe..afd11ac9f6 100644
--- a/tests/urlpatterns/path_base64_urls.py
+++ b/tests/urlpatterns/path_base64_urls.py
@@ -4,8 +4,16 @@ from . import converters, views
register_converter(converters.Base64Converter, 'base64')
+subsubpatterns = [
+ path('<base64:last_value>/', views.empty_view, name='subsubpattern-base64'),
+]
+
subpatterns = [
path('<base64:value>/', views.empty_view, name='subpattern-base64'),
+ path(
+ '<base64:value>/',
+ include((subsubpatterns, 'second-layer-namespaced-base64'), 'instance-ns-base64')
+ ),
]
urlpatterns = [