re_path reorg

This commit is contained in:
Asif Saif Uddin (Auvi) 2020-07-29 09:43:16 +06:00
parent e75d169496
commit 5314032ed1

View File

@ -174,8 +174,8 @@ class FormatSuffixTests(TestCase):
path('url/<int:child>', dummy_view) path('url/<int:child>', dummy_view)
] ]
urlpatterns = [ urlpatterns = [
path('purl/<int:parent>/', include(nested_patterns), {'foo': 'bar'}),
re_path('^purl/(?P<parent>[0-9]+)/', include(nested_patterns), {'foo': 'bar'}), re_path('^purl/(?P<parent>[0-9]+)/', include(nested_patterns), {'foo': 'bar'}),
path('ppath/<int:parent>/', include(nested_patterns), {'foo': 'bar'}),
] ]
test_paths = [ test_paths = [
# parent url() nesting child path() # parent url() nesting child path()