mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +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:
parent
83c803f161
commit
baf9604ed8
11 changed files with 163 additions and 14 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue