Re: Choices in DecimalField - django 1.8.

2017-09-19 Thread Gordon Wrigley
In case anyone else ends up here, I've found that it's very sensitive to how you specify the Decimal, so in my example Decimal('20.00') worked but Decimal('20') and Decimal(20) did not. On Monday, April 20, 2015 at 6:44:30 PM UTC+1, eltonplima wrote: > > In the model below, using the Django admi

Choices in DecimalField - django 1.8.

2015-04-20 Thread Elton Pereira
In the model below, using the Django admin, no matter what value I choose, it always displays the default value. But writes the correct value in the database. Am I doing something wrong or is this a bug? TENSAO_220 = Decimal(220) TENSAO_110 = Decimal(110) TENSOES = ((TENSAO_220, '220 volts'),