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/check_framework/urls/beginning_with_slash.py | |
| parent | 1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff) | |
Updated test URL patterns to use path() and re_path().
Diffstat (limited to 'tests/check_framework/urls/beginning_with_slash.py')
| -rw-r--r-- | tests/check_framework/urls/beginning_with_slash.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/check_framework/urls/beginning_with_slash.py b/tests/check_framework/urls/beginning_with_slash.py index 8dac96745c..bd4e29d8f1 100644 --- a/tests/check_framework/urls/beginning_with_slash.py +++ b/tests/check_framework/urls/beginning_with_slash.py @@ -1,7 +1,6 @@ -from django.conf.urls import url -from django.urls import path +from django.urls import path, re_path urlpatterns = [ path('/path-starting-with-slash/', lambda x: x), - url(r'/url-starting-with-slash/$', lambda x: x), + re_path(r'/url-starting-with-slash/$', lambda x: x), ] |
