mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs.
Thanks Florian Apolloner for the review and implementation idea.
This commit is contained in:
committed by
Mariusz Felisiak
parent
83c803f161
commit
baf9604ed8
@@ -78,6 +78,13 @@ urlpatterns = [
|
||||
name="windows",
|
||||
),
|
||||
re_path(r"^special_chars/(?P<chars>.+)/$", empty_view, name="special"),
|
||||
re_path(r"^resolved/(?P<arg>\d+)/$", empty_view, {"extra": True}, name="resolved"),
|
||||
re_path(
|
||||
r"^resolved-overridden/(?P<arg>\d+)/(?P<overridden>\w+)/$",
|
||||
empty_view,
|
||||
{"extra": True, "overridden": "default"},
|
||||
name="resolved-overridden",
|
||||
),
|
||||
re_path(r"^(?P<name>.+)/[0-9]+/$", empty_view, name="mixed"),
|
||||
re_path(r"^repeats/a{1,2}/$", empty_view, name="repeats"),
|
||||
re_path(r"^repeats/a{2,4}/$", empty_view, name="repeats2"),
|
||||
|
||||
Reference in New Issue
Block a user