I have following code in my django application.
class Status(object):
def __init__(self, id, desc):
self.id = id
self.desc = desc
def __unicode__(self):
return self.desc
STATUS = Status(0, _(u"Some text"))
When I try to display some status (or even coerce it to unicode), I get:
TypeError: coercing to Unicode: need string or buffer, __proxy__ found
Could anyone explain me, what I am doing wrong?