aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTom Christie2013-04-26 13:59:06 +0100
committerTom Christie2013-04-26 13:59:06 +0100
commitd985aec3c9034ab1aa899e914a5ac0baf314cb3c (patch)
tree4a6f47489a64114c2918947582c5d40b83160f99 /docs
parent50c6bc5762460ebd2a79b61edd534d10cb58c7e5 (diff)
parentcac669702596cdf768971267e6355fb9223a69e8 (diff)
downloaddjango-rest-framework-d985aec3c9034ab1aa899e914a5ac0baf314cb3c.tar.bz2
DecimalField
Diffstat (limited to 'docs')
-rw-r--r--docs/api-guide/fields.md6
-rw-r--r--docs/topics/2.3-announcement.md6
-rw-r--r--docs/topics/release-notes.md15
3 files changed, 27 insertions, 0 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md
index 42f89f46..e117c370 100644
--- a/docs/api-guide/fields.md
+++ b/docs/api-guide/fields.md
@@ -248,6 +248,12 @@ A floating point representation.
Corresponds to `django.db.models.fields.FloatField`.
+## DecimalField
+
+A decimal representation.
+
+Corresponds to `django.db.models.fields.DecimalField`.
+
## FileField
A file representation. Performs Django's standard FileField validation.
diff --git a/docs/topics/2.3-announcement.md b/docs/topics/2.3-announcement.md
index 0b80f5e2..554728ae 100644
--- a/docs/topics/2.3-announcement.md
+++ b/docs/topics/2.3-announcement.md
@@ -118,6 +118,12 @@ And would have the following entry in the urlconf:
Usage of the old-style attributes continues to be supported, but will raise a `PendingDeprecationWarning`.
+## DecimalField
+
+2.3 introduces a `DecimalField` serializer field, which returns `Decimal` instances.
+
+For most cases APIs using model fields will behave as previously, however if you are using a custom renderer, not provided by REST framework, then you may now need to add support for rendering `Decimal` instances to your renderer implmentation.
+
---
# Other notes
diff --git a/docs/topics/release-notes.md b/docs/topics/release-notes.md
index 5e0aa098..8094cc4a 100644
--- a/docs/topics/release-notes.md
+++ b/docs/topics/release-notes.md
@@ -38,6 +38,20 @@ You can determine your currently installed version using `pip freeze`:
---
+## 2.3.x series
+
+### 2.3.0
+
+* ViewSets and Routers.
+* ModelSerializers support reverse relations in 'fields' option.
+* HyperLinkedModelSerializers support 'id' field in 'fields' option.
+* Cleaner generic views.
+* DecimalField support.
+
+**Note**: See the [2.3 announcement][2.3-announcement] for full details.
+
+---
+
## 2.2.x series
### 2.2.7
@@ -458,6 +472,7 @@ This change will not affect user code, so long as it's following the recommended
[django-deprecation-policy]: https://docs.djangoproject.com/en/dev/internals/release-process/#internal-release-deprecation-policy
[defusedxml-announce]: http://blog.python.org/2013/02/announcing-defusedxml-fixes-for-xml.html
[2.2-announcement]: 2.2-announcement.md
+[2.3-announcement]: 2.3-announcement.md
[743]: https://github.com/tomchristie/django-rest-framework/pull/743
[staticfiles14]: https://docs.djangoproject.com/en/1.4/howto/static-files/#with-a-template-tag
[staticfiles13]: https://docs.djangoproject.com/en/1.3/howto/static-files/#with-a-template-tag