#29617: django.template.Template crashes if the template_string argument is lazy
-------------------------------------+-------------------------------------
Reporter: Dražen Odobašić | Owner: Dražen
| Odobašić
Type: Bug | Status: closed
Component: Template system | Version: 2.0
Severity: Release blocker | Resolution: fixed
Keywords: | 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 Daniel Miller):
It appears that as of
[https://github.com/django/django/commit/4dadf4eb7bad7c8e9154ff86e7e42ed846c8974d
this change] it is no longer possible to use `Template` with bytes since
the input is now coerced to `str`. [https://github.com/dimagi/commcare-
hq/pull/27911/commits/897b3ff56cdef6179f1d4373f34b15d9d5411fec CommCareHQ
was using that feature] and ran into the issue while upgrading Django. I
did not see mention of this backward-incompatible change in the release
notes.
--
Ticket URL: <https://code.djangoproject.com/ticket/29617#comment:5>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/065.a1763bda62e9cdf1e15c0b891281c47f%40djangoproject.com.