私のdjangoアプリケーションには次のコードがあります。
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"))
何らかのステータスを表示しようとすると (またはユニコードに強制することさえ)、次のようになります。
TypeError: coercing to Unicode: need string or buffer, __proxy__ found
私が間違っていることを誰かに説明してもらえますか?