[Answer]-Django-1.5 DecimalField

1👍

try this:

    def __str__(self):
    return self.empresa

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?

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

Leave a comment