1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #26431 -- Added tests for resolving URL and translate_url() with provided optional parameter.

This commit is contained in:
daniel a rios
2019-06-21 17:37:41 +02:00
committed by Mariusz Felisiak
parent b24e763846
commit d640c71fa3
4 changed files with 17 additions and 0 deletions

View File

@@ -15,6 +15,11 @@ urlpatterns = [
urlpatterns += i18n_patterns(
path('prefixed/', view, name='prefixed'),
path('prefixed.xml', view, name='prefixed_xml'),
re_path(
_(r'^with-arguments/(?P<argument>[\w-]+)/(?:(?P<optional>[\w-]+).html)?$'),
view,
name='with-arguments',
),
re_path(_(r'^users/$'), view, name='users'),
re_path(_(r'^account/'), include('i18n.patterns.urls.namespace', namespace='account')),
)