mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +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)
|
||||
]
|
||||
urlpatterns = [
|
||||
path('purl/<int:parent>/', 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 = [
|
||||
# parent url() nesting child path()
|
||||
|
|
Loading…
Reference in New Issue
Block a user