aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/fields.md
diff options
context:
space:
mode:
authorTom Christie2014-01-14 11:25:44 +0000
committerTom Christie2014-01-14 11:25:44 +0000
commit85d74fc86a934309359a437dd487193013055977 (patch)
tree6c7ab1a100f61c7102d728ac6cd7dd788ed739fd /docs/api-guide/fields.md
parentbc6c5df109a35bf76be662a47d9c88a2a3b82351 (diff)
downloaddjango-rest-framework-85d74fc86a934309359a437dd487193013055977.tar.bz2
Added write_only and write_only_fields. Refs #1306
Diffstat (limited to 'docs/api-guide/fields.md')
-rw-r--r--docs/api-guide/fields.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md
index 91866664..c136509b 100644
--- a/docs/api-guide/fields.md
+++ b/docs/api-guide/fields.md
@@ -28,7 +28,13 @@ Defaults to the name of the field.
### `read_only`
-Set this to `True` to ensure that the field is used when serializing a representation, but is not used when updating an instance during deserialization.
+Set this to `True` to ensure that the field is used when serializing a representation, but is not used when creating or updating an instance during deserialization.
+
+Defaults to `False`
+
+### `write_only`
+
+Set this to `True` to ensure that the field may be used when updating or creating an instance, but is not included when serializing the representation.
Defaults to `False`