mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Instead of using DjangoJSONEncoder, use base_field's value_to_string(). Note this means the serialization of e.g. IntegerRangeField now has strings for lower and upper, so use to_python when they came back in (same behaviour as ArrayField, hopefully, from where I also got the set_attributes_from_name function). Backport of86d9b10dc3and8a842148b6from master