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:
committed by
Mariusz Felisiak
parent
b24e763846
commit
d640c71fa3
@@ -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')),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user