summaryrefslogtreecommitdiff
path: root/tests/check_framework/urls/warning_in_include.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-07 17:52:28 -0500
committerTim Graham <timograham@gmail.com>2018-12-31 10:47:32 -0500
commit043bd709425149b8eff3fb821cba5c23aaebd0df (patch)
tree7624be405a6a6e5a041e2852251ef76e9d28fa7d /tests/check_framework/urls/warning_in_include.py
parent1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff)
Updated test URL patterns to use path() and re_path().
Diffstat (limited to 'tests/check_framework/urls/warning_in_include.py')
-rw-r--r--tests/check_framework/urls/warning_in_include.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/check_framework/urls/warning_in_include.py b/tests/check_framework/urls/warning_in_include.py
index 5bb94c9688..8ec846be1e 100644
--- a/tests/check_framework/urls/warning_in_include.py
+++ b/tests/check_framework/urls/warning_in_include.py
@@ -1,7 +1,7 @@
-from django.conf.urls import include, url
+from django.urls import include, path, re_path
urlpatterns = [
- url(r'^', include([
- url(r'^include-with-dollar$', include([])),
+ path('', include([
+ re_path('^include-with-dollar$', include([])),
])),
]