﻿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
34886	Sample use of lazy in delayed translations is not valid in Django 4.1 and 4.2.	Stefan Hammer	Lufafa Joshua	"The sample code to mark a lazy translation as ""safe"" in the docs [https://docs.djangoproject.com/en/dev/topics/i18n/translation/#other-uses-of-lazy-in-delayed-translations here] seems to be invalid since Django 4.1 (#20296).

We're in the process of upgrading a Django 3.2 installation to Django 4.2 and we've used this utility `mark_safe_lazy` from the sample in our code. This code now produces the error `__str__ returned non-string (type __proxy__)` when rendering such a value in the templates.

The fix seems to simply use Django's `mark_safe(gettext_lazy(...))` instead of this custom helper."	Bug	closed	Documentation	4.2	Normal	fixed		Claude Paroz	Ready for checkin	1	0	0	0	0	0
