diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-06 09:32:51 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-06 09:33:45 +0100 |
| commit | e986e49e66c23c26012749e1a134cba1d6d0bfdd (patch) | |
| tree | a4fc936f764a24e06be15915ce194fe4eff8156b /docs | |
| parent | 6ede5a3cb7ae92d6d8fdbd71805fb4742c672dd9 (diff) | |
[3.0.x] Fixed #31061 -- Ignored positional args in django.urls.resolve() when all optional named parameters are missing.
Regression in 76b993a117b61c41584e95149a67d8a1e9f49dd1.
Thanks Claude Paroz for the report and Carlton Gibson for reviews.
Backport of 82a88d2f48e13ef5d472741d5ed1c183230cfe4c from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/3.0.1.txt | 4 | ||||
| -rw-r--r-- | docs/topics/http/urls.txt | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/releases/3.0.1.txt b/docs/releases/3.0.1.txt index 589ef40499..cdfdc33e40 100644 --- a/docs/releases/3.0.1.txt +++ b/docs/releases/3.0.1.txt @@ -13,3 +13,7 @@ Bugfixes inside Jupyter and other environments that force an async context, by adding and option to disable :ref:`async-safety` mechanism with ``DJANGO_ALLOW_ASYNC_UNSAFE`` environment variable (:ticket:`31056`). + +* Fixed a regression in Django 3.0 where ``RegexPattern``, used by + :func:`~django.urls.re_path`, returned positional arguments to be passed to + the view when all optional named groups were missing (:ticket:`31061`). diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index 4283d6ebe1..5c1540b809 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -53,7 +53,7 @@ algorithm the system follows to determine which Python code to execute: arguments: * An instance of :class:`~django.http.HttpRequest`. - * If the matched URL pattern returned no named groups, then the + * If the matched URL pattern contained no named groups, then the matches from the regular expression are provided as positional arguments. * The keyword arguments are made up of any named parts matched by the path expression, overridden by any arguments specified in the optional |
