Fixed #3598: Added a note about the precedence of URL matches versus extra kwargs in URL patterns. Thanks, Ubernostrum.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2007-02-27 20:11:26 +00:00
parent b97636944d
commit 9c2c03a974
1 changed files with 7 additions and 0 deletions

View File

@ -390,6 +390,13 @@ to pass metadata and options to views.
.. _generic views: ../generic_views/ .. _generic views: ../generic_views/
.. _syndication framework: ../syndication/ .. _syndication framework: ../syndication/
.. admonition:: Dealing with conflicts
It's possible to have a URL pattern which captures named keyword arguments,
and also passes arguments with the same names in its dictionary of extra
arguments. When this happens, the arguments in the dictionary will be used
instead of the arguments captured in the URL.
Passing extra options to ``include()`` Passing extra options to ``include()``
-------------------------------------- --------------------------------------