summaryrefslogtreecommitdiff
path: root/tests/i18n/patterns/urls/namespace.py
diff options
context:
space:
mode:
authorSjoerd Job Postmus <sjoerdjob@sjec.nl>2016-10-20 19:29:04 +0200
committerTim Graham <timograham@gmail.com>2017-09-20 18:04:42 -0400
commitdf41b5a05d4e00e80e73afe629072e37873e767a (patch)
treebaaf71ae695e2d3af604ea0d663284cb406c71e4 /tests/i18n/patterns/urls/namespace.py
parentc4c128d67c7dc2830631c6859a204c9d259f1fb1 (diff)
Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
Diffstat (limited to 'tests/i18n/patterns/urls/namespace.py')
-rw-r--r--tests/i18n/patterns/urls/namespace.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i18n/patterns/urls/namespace.py b/tests/i18n/patterns/urls/namespace.py
index 2f19640d37..9858c8cd5e 100644
--- a/tests/i18n/patterns/urls/namespace.py
+++ b/tests/i18n/patterns/urls/namespace.py
@@ -1,4 +1,5 @@
from django.conf.urls import url
+from django.urls import path
from django.utils.translation import gettext_lazy as _
from django.views.generic import TemplateView
@@ -8,4 +9,5 @@ app_name = 'account'
urlpatterns = [
url(_(r'^register/$'), view, name='register'),
url(_(r'^register-without-slash$'), view, name='register-without-slash'),
+ path(_('register-as-path/'), view, name='register-as-path'),
]