I've found this piece of code from Wolfram Kriesing: 
http://dpaste.com/hold/4601/

He hacked it so that any decimal field is returned as a string. All
you have to do to use this is paste the code into a file, such as
json.py, and import the json_encode function from that file where you
want to use it:

from dev_gfs.shop.json import json_encode
def hello():
  return HttpResponse(json_encode(OrderDetail.objects.all()),
mimetype="application/javascript")

To Russel: you said that this decimal serialization issue was fixed a
long time ago. How so?

Thanks,

robo


--~--~---------~--~----~------------~-------~--~----~
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