mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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().
This commit is contained in:
committed by
Tim Graham
parent
b8b1d8cad6
commit
b0b4aac555
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user