diff options
| author | David Pretty | 2013-09-13 13:36:18 +1000 |
|---|---|---|
| committer | David Pretty | 2013-09-13 13:36:18 +1000 |
| commit | d489c5c88144a25ef0d61fb8deb0b77f3a061480 (patch) | |
| tree | bba6679a54d8dc13a8b1adcb6c86b4bddcb1b5aa /rest_framework/tests/test_serializer.py | |
| parent | ea462b7b9b28f425c8c91d10e34532ddbb3c87fa (diff) | |
| download | django-rest-framework-d489c5c88144a25ef0d61fb8deb0b77f3a061480.tar.bz2 | |
Let JSONEncoder handle Numpy data types.
json.JSONEncoder cannot serialize Numpy data types. Numpy arrays
and array scalars have a tolist() method which casts the object to
a standard python data type.
Diffstat (limited to 'rest_framework/tests/test_serializer.py')
0 files changed, 0 insertions, 0 deletions
