Hi.

I've defined a model object (with a number of DecimalFields), and I
can load it happily, but when I take a freshly loaded instance and
call .save(), I get the error:

TypeError: Cannot convert float to Decimal.  First convert the float
to a string

I suspect this is because for some reason django isn't loading one of
my DecimalFields as a decimal object.

Looking at the attributes I see it's loading as a raw number eg 702.0
whereas all the others are eg Decimal("702.0").

Searching is making me think this may be Python 2.3 related (I'm using
2.3.4).

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to