Hello Malcolm, Malcolm Tredinnick wrote: > Pleasee file a ticket with a small, self-contained, repeatable example > that demonstrates the problem. Reporting ticket son the mailing list is > a good way to have them forgotten about. > > I did test JSON serialisation of decimals, so it doesn't fail always. > There's a change in core/serializers/json.py for exactly that purpose. > So there's something special about your setup.
The problem is when using simplejson out of the box (and not using the JSONSerializer in django): simplejson.dump( [ mymodel.my_decimal_field ] ) doesn't work, although it did work before on the float field. Casting it to float works again: simplejson.dump( [ float(mymodel.my_decimal_field) ] ) I'm not sure if it's worth ticketing this... - bram --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---