diff options
author | Tim Graham <timograham@gmail.com> | 2018-12-07 17:52:28 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-12-31 10:47:32 -0500 |
commit | 043bd709425149b8eff3fb821cba5c23aaebd0df (patch) | |
tree | 7624be405a6a6e5a041e2852251ef76e9d28fa7d /tests/resolve_url | |
parent | 1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff) | |
download | django-043bd709425149b8eff3fb821cba5c23aaebd0df.tar.gz |
Updated test URL patterns to use path() and re_path().
Diffstat (limited to 'tests/resolve_url')
-rw-r--r-- | tests/resolve_url/urls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/resolve_url/urls.py b/tests/resolve_url/urls.py index 43429d6f2a..58797dbb71 100644 --- a/tests/resolve_url/urls.py +++ b/tests/resolve_url/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import url +from django.urls import path def some_view(request): @@ -6,5 +6,5 @@ def some_view(request): urlpatterns = [ - url(r'^some-url/$', some_view, name='some-view'), + path('some-url/', some_view, name='some-view'), ] |