I have a model with a decimal field.

When accessing that field, it is showing up as a float which seemed
wrong. It was causing errors where += wasn't defined for floats &
decimals.

The problem turned out to be that I initialized the decimal values to
0.0, not Decimal("0.0"). This was on the same request, but I saved the
operation.

Initializing a decimal field should always convert the argument to a
string with maximal precision.

Ivan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to