Fixed #28766 -- Added ResolverMatch.route.

Co-Authored-By: Xavier Fernandez <xavier.fernandez@polyconseil.fr>
This commit is contained in:
Benjamin Wohlwend 2017-11-02 17:35:41 +01:00 committed by Tim Graham
parent ad191d9e01
commit 79c196cfb2
8 changed files with 65 additions and 8 deletions

View file

@ -1,5 +1,5 @@
from django.conf.urls import include
from django.urls import path
from django.urls import path, re_path
from . import views
@ -11,5 +11,7 @@ urlpatterns = [
path('users/', views.empty_view, name='users'),
path('users/<id>/', views.empty_view, name='user-with-id'),
path('included_urls/', include('urlpatterns.included_urls')),
re_path(r'^regex/(?P<pk>[0-9]+)/$', views.empty_view, name='regex'),
path('', include('urlpatterns.more_urls')),
path('<lang>/<path:url>/', views.empty_view, name='lang-and-path'),
]