0
這是我的海峽和unicode ...脅迫到Unicode:需要字符串或緩衝區,NoneType發現一切似乎很動聽,仍然收到此錯誤
def __str__(self):
return '%s' % self.id
def __unicode__(self):
return self.title or u''
,我已經嘗試過這...
def __str__(self):
return self.id
def __unicode__(self):
return self.id
仍然收到這個錯誤..
coercing to Unicode: need string or buffer, NoneType found
下面的答案是否適合您? –