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 /docs | |
| parent | 83c803f161044fbfbfcd9a0c94ca93dc131be662 (diff) | |
Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs.
Thanks Florian Apolloner for the review and implementation idea.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/urlresolvers.txt | 17 | ||||
| -rw-r--r-- | docs/releases/4.1.txt | 6 |
2 files changed, 21 insertions, 2 deletions
diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt index d39345b478..2bde4d73ea 100644 --- a/docs/ref/urlresolvers.txt +++ b/docs/ref/urlresolvers.txt @@ -123,9 +123,24 @@ If the URL does not resolve, the function raises a .. attribute:: ResolverMatch.kwargs - The keyword arguments that would be passed to the view + All keyword arguments that would be passed to the view function, i.e. + :attr:`~ResolverMatch.captured_kwargs` and + :attr:`~ResolverMatch.extra_kwargs`. + + .. attribute:: ResolverMatch.captured_kwargs + + .. versionadded:: 4.1 + + The captured keyword arguments that would be passed to the view function, as parsed from the URL. + .. attribute:: ResolverMatch.extra_kwargs + + .. versionadded:: 4.1 + + The additional keyword arguments that would be passed to the view + function. + .. attribute:: ResolverMatch.url_name The name of the URL pattern that matches the URL. diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index c7159bd4f2..eb4bde652b 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -326,7 +326,11 @@ Tests URLs ~~~~ -* ... +* The new :attr:`.ResolverMatch.captured_kwargs` attribute stores the captured + keyword arguments, as parsed from the URL. + +* The new :attr:`.ResolverMatch.extra_kwargs` attribute stores the additional + keyword arguments passed to the view function. Utilities ~~~~~~~~~ |
