#36796: URL resolution breaks if route defined with lazy string and uses an
include
-------------------------------------+-------------------------------------
Reporter: Andrea Angelini | Owner: Kundan
| Yadav
Type: Bug | Status: closed
Component: Core (URLs) | Version: 6.0
Severity: Release blocker | Resolution: fixed
Keywords: gettext_lazy, lazy | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):
In [changeset:"d35daf8600a66c0ff20e36f82969df61a7fc4981" d35daf86]:
{{{#!CommitTicketReference repository=""
revision="d35daf8600a66c0ff20e36f82969df61a7fc4981"
[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 <[email protected]>
Backport of 7bf3ac3ee255bcfe329e3203c7a2555b1275d506 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36796#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019b5a9fd841-f9a248f8-795e-4ae2-ba4a-c811790b3d53-000000%40eu-central-1.amazonses.com.