Hello all,
I'm following the "Serializing Django objects" documentation and have
a view pretty much verbatim from the docs:
if xhr:
return HttpResponse(simplejson.dumps(form_data),
mimetype='application/javascript')
When I test the above view using the Django shell, it works, but when
I try it via a browser request, I get this:
Decimal("44.048708") is not JSON serializable
Any help will be appreciated.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.