mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
re_path reorg
This commit is contained in:
parent
e75d169496
commit
5314032ed1
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user