diff options
| author | Alokik Vijay <alokik.roe@gmail.com> | 2022-03-28 21:26:20 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-03-29 10:27:40 +0200 |
| commit | baf9604ed8fed3e6e7ddfaca2d83c377c81399ae (patch) | |
| tree | 141aee743c3cae65e6e4522859489d3c0da1d4aa /tests/urlpatterns/path_urls.py | |
| parent | 83c803f161044fbfbfcd9a0c94ca93dc131be662 (diff) | |
Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs.
Thanks Florian Apolloner for the review and implementation idea.
Diffstat (limited to 'tests/urlpatterns/path_urls.py')
| -rw-r--r-- | tests/urlpatterns/path_urls.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/urlpatterns/path_urls.py b/tests/urlpatterns/path_urls.py index 5ebdfe1b16..8a356b5463 100644 --- a/tests/urlpatterns/path_urls.py +++ b/tests/urlpatterns/path_urls.py @@ -13,6 +13,13 @@ urlpatterns = [ views.empty_view, name="articles-year-month-day", ), + path("books/2007/", views.empty_view, {"extra": True}, name="books-2007"), + path( + "books/<int:year>/<int:month>/<int:day>/", + views.empty_view, + {"extra": True}, + name="books-year-month-day", + ), path("users/", views.empty_view, name="users"), path("users/<id>/", views.empty_view, name="user-with-id"), path("included_urls/", include("urlpatterns.included_urls")), @@ -27,6 +34,6 @@ urlpatterns = [ views.empty_view, name="regex_only_optional", ), - path("", include("urlpatterns.more_urls")), + path("", include("urlpatterns.more_urls"), {"sub-extra": False}), path("<lang>/<path:url>/", views.empty_view, name="lang-and-path"), ] |
