﻿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
25000	Implement default __str__ and similar for lazy() objects	Marten Kenbeek	Marten Kenbeek	"Currently `__str__`  returns the string representation of the proxied object only if one of the resultclasses is a string-like object. Otherwise, it returns the pretty much useless `<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fac6332ffd0>`. 

`str(lazy_object)` should return the same as `str(non_lazy_object)`. This is easily achievable by providing a default `__str__()` method on `__proxy__`:

{{{
class __proxy__(Promise):
    def __str__(self):
        return str(self.__cast())
}}}

This behaviour would still be overridden for string-like lazy objects. The same could be implemented for `bytes()` and `unicode()`. "	Bug	closed	Utilities	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
