id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 29617 django.template.Template crashes if the template_string argument is lazy Dražen Odobašić Dražen Odobašić "* in Django 1.11 we were using `force_text` when initializing templates and that evaluated any lazy objects - https://github.com/django/django/commit/3a148f958dddd97c1379081118c30fbede6b6bc4#diff-8cbe1fb6d589cb6e35b956704d7a1285L154 * in this context lazy objects are usually `gettext` wrapped strings * in Django 2.0/master we removed `force_text` so lazy strings are no longer evaluated, and that raises a `TypeError: expected string or bytes-like object` - https://github.com/django/django/blob/2.0.7/django/template/base.py#L349 * proposed solution: use `str` to force evaluation of lazy objects" Bug closed Template system 2.0 Release blocker fixed Ready for checkin 1 0 0 0 0 0