0👍
try manually convert decimal object to string like this:
def __unicode__(self):
return '%s' % self.empresa
If it’s not helped, can you specify Django version what you are using?
- [Answer]-Django Template view class not working
- [Answer]-Coercing to Unicode: need string or buffer, list found
0👍
Yeahh. work in parts
im my model Ponto. The html dropdowns of FK’s
valor_empresa
valor_motoboy
brings the same value in both. to_field does not work?
My Django is 1.5.9
👤eso
Source:stackexchange.com