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 django-us...@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