You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
works well with Decimal objects in lists, because simplejson supports dumps for Decimals. But standard python json not. Because of that I get TypeError: Decimal('10') is not JSON serializable
The text was updated successfully, but these errors were encountered:
Hello!
This issue introduced by commit 3b235cb.
django-hstore version: 1.4.1
django version: 1.7
python version: 2.7.6
Problem description:
My model have field
hstore.DictionaryField
. Before 1.4.1, in methodensure_acceptable_value
, codedjango-hstore/django_hstore/dict.py
Line 123 in 3b235cb
works well with
Decimal
objects in lists, becausesimplejson
supports dumps forDecimals
. But standard pythonjson
not. Because of that I getTypeError: Decimal('10') is not JSON serializable
The text was updated successfully, but these errors were encountered: