mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Note changes to Decimal rendering to json behavior. Fixes #582.
This commit is contained in:
parent
fecfe57aef
commit
0f0a07b732
|
@ -25,13 +25,15 @@ Major version numbers (x.0.0) are reserved for project milestones. No major poi
|
|||
|
||||
**Date**: 14th Jan 2013
|
||||
|
||||
* Deprecate django.utils.simplejson in favor of Python 2.6's built-in json module.
|
||||
* Deprecate `django.utils.simplejson` in favor of Python 2.6's built-in json module.
|
||||
* Bugfix: `auto_now`, `auto_now_add` and other `editable=False` fields now default to read-only.
|
||||
* Bugfix: PK fields now only default to read-only if they are an AutoField or if `editable=False`.
|
||||
* Bugfix: Validation errors instead of exceptions when serializers receive incorrect types.
|
||||
* Bugfix: Validation errors instead of exceptions when related fields receive incorrect types.
|
||||
* Bugfix: Handle ObjectDoesNotExist exception when serializing null reverse one-to-one
|
||||
|
||||
**Note**: Prior to 2.1.16, The Decimals would render in JSON using floating point if `simplejson` was installed, but otherwise render using string notation. Now that use of `simplejson` has been deprecated, Decimals will consistently render using string notation. See [#582] for more details.
|
||||
|
||||
### 2.1.15
|
||||
|
||||
**Date**: 3rd Jan 2013
|
||||
|
@ -324,3 +326,4 @@ This change will not affect user code, so long as it's following the recommended
|
|||
[staticfiles13]: https://docs.djangoproject.com/en/1.3/howto/static-files/#with-a-template-tag
|
||||
[2.1.0-notes]: https://groups.google.com/d/topic/django-rest-framework/Vv2M0CMY9bg/discussion
|
||||
[announcement]: rest-framework-2-announcement.md
|
||||
[#582]: https://github.com/tomchristie/django-rest-framework/issues/582
|
||||
|
|
Loading…
Reference in New Issue
Block a user