diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-04-28 08:05:43 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-05-02 06:04:18 +0200 |
| commit | 0e444e84f87d174713a2aef0c4f9704ce2865586 (patch) | |
| tree | 5fd8693f08332b5e57765a5464b8bb66eb1d10c2 /docs | |
| parent | 191f6a9a4586b5e5f79f4f42f190e7ad4bbacc84 (diff) | |
Fixed #34515 -- Made LocaleMiddleware prefer language from paths when i18n patterns are used.
Regression in 94e7f471c4edef845a4fe5e3160132997b4cca81.
This reverts commit 94e7f471c4edef845a4fe5e3160132997b4cca81
(refs #34069) and
partly reverts commit 3b4728310a7a64f8fcc548163b0aa5f98a5c78f5.
Thanks Anthony Baillard for the report.
Co-Authored-By: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/4.2.1.txt | 5 | ||||
| -rw-r--r-- | docs/releases/4.2.txt | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/releases/4.2.1.txt b/docs/releases/4.2.1.txt index 151d16466f..a1130effe8 100644 --- a/docs/releases/4.2.1.txt +++ b/docs/releases/4.2.1.txt @@ -31,6 +31,11 @@ Bugfixes ``prefix_default_language`` argument when a fallback language of the default language was used (:ticket:`34455`). +* Fixed a regression in Django 4.2 where translated URLs of the default + language from ``i18n_patterns()`` with ``prefix_default_language`` set to + ``False`` raised 404 errors for a request with a different language + (:ticket:`34515`). + * Fixed a regression in Django 4.2 where creating copies and deep copies of ``HttpRequest``, ``HttpResponse``, and their subclasses didn't always work correctly (:ticket:`34482`, :ticket:`34484`). diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index b113f3d217..d923be55b8 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -248,10 +248,6 @@ Internationalization * Added support and translations for the Central Kurdish (Sorani) language. -* The :class:`~django.middleware.locale.LocaleMiddleware` now respects a - language from the request when :func:`~django.conf.urls.i18n.i18n_patterns` - is used with the ``prefix_default_language`` argument set to ``False``. - Logging ~~~~~~~ |
