#36796: URL resolution breaks if route defined with lazy string and uses an
include
------------------------------------+------------------------------------
Reporter: Andrea Angelini | Owner: (none)
Type: Bug | Status: new
Component: Core (URLs) | Version: 6.0
Severity: Release blocker | Resolution:
Keywords: gettext_lazy, lazy | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+------------------------------------
Comment (by Andrea Angelini):
Amended like following fixes this issue:
{{{
elif path.startswith(str(self._route)):
return path.removeprefix(str(self._route)), (), {}
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36796#comment:3>
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/0107019b13206f82-e9d7bfa2-4125-4036-a0a7-2e65f3c06389-000000%40eu-central-1.amazonses.com.