From d35daf8600a66c0ff20e36f82969df61a7fc4981 Mon Sep 17 00:00:00 2001 From: kundan223 Date: Sun, 14 Dec 2025 13:02:25 +0530 Subject: [6.0.x] Fixed #36796 -- Handled lazy routes correctly in RoutePattern.match(). Coerce lazy route values to `str` at match time to support prefix and endpoint matching when using `gettext_lazy()` route paths. Regression in f920937c8a63df6bea220e4386f59cdb45b2e355. Thanks to Andrea Angelini for the report, and to Jake Howard and Jacob Walls for reviews. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Backport of 7bf3ac3ee255bcfe329e3203c7a2555b1275d506 from main. --- docs/releases/6.0.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/6.0.1.txt b/docs/releases/6.0.1.txt index 90158b6ff2..753d2c87ad 100644 --- a/docs/releases/6.0.1.txt +++ b/docs/releases/6.0.1.txt @@ -31,3 +31,7 @@ Bugfixes * Fixed a crash in Django 6.0 caused by infinite recursion when calling ``repr()`` on an unevaluated ``django.utils.csp.LazyNonce`` instance (:ticket:`36810`). + +* Fixed a regression in Django 6.0 where :func:`~django.urls.path` routes + defined using :func:`~django.utils.translation.gettext_lazy` failed to + resolve correctly (:ticket:`36796`). -- cgit v1.3