toastdriven/django-tastypie — Issue #281: DecimalField json output can not be accepted as input
Author: joejulian
Created: 2011-11-02 20:51:47+00:00
State: open

The json output of a DecimalField is a unquoted number, ie {"price": 1.0}

If used as input data to a POST, that json causes an error:

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

{"price": "1.0"} does work

My expectation would be that the json output of the DecimalField should be able to be used as input.