1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #29415 -- Fixed detection of custom URL converters in included patterns.

This commit is contained in:
Xaroth Brook
2018-05-26 22:56:17 +02:00
committed by Tim Graham
parent e01fa015c0
commit 39283c8edb
6 changed files with 42 additions and 12 deletions

View File

@@ -1,9 +1,15 @@
from django.urls import path, register_converter
from django.urls import include, path, register_converter
from . import converters, views
register_converter(converters.Base64Converter, 'base64')
subpatterns = [
path('<base64:value>/', views.empty_view, name='subpattern-base64'),
]
urlpatterns = [
path('base64/<base64:value>/', views.empty_view, name='base64'),
path('base64/<base64:base>/subpatterns/', include(subpatterns)),
path('base64/<base64:base>/namespaced/', include((subpatterns, 'namespaced-base64'))),
]