aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/fields.md
diff options
context:
space:
mode:
authorXavier Ordoquy2014-05-01 08:01:38 +0200
committerXavier Ordoquy2014-05-01 08:01:38 +0200
commit7b4463f73983e36f228e6af0ff8c921d4698a9b3 (patch)
treec26fd01425a3754e65a0b2c48694ca734278745f /docs/api-guide/fields.md
parent2aca69a94601858a462060bc55154c812f70fb91 (diff)
parentc9e6f31166ebccc5c3bf2f27e12a6d6c87f5cf22 (diff)
downloaddjango-rest-framework-7b4463f73983e36f228e6af0ff8c921d4698a9b3.tar.bz2
Merge remote-tracking branch 'reference/2.4.0' into feature/pytest
Conflicts: rest_framework/runtests/urls.py tests/test_response.py tox.ini
Diffstat (limited to 'docs/api-guide/fields.md')
-rw-r--r--docs/api-guide/fields.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md
index 67fa65d2..883734a3 100644
--- a/docs/api-guide/fields.md
+++ b/docs/api-guide/fields.md
@@ -164,11 +164,12 @@ Corresponds to `django.db.models.fields.BooleanField`.
## CharField
A text representation, optionally validates the text to be shorter than `max_length` and longer than `min_length`.
+If `allow_none` is `False` (default), `None` values will be converted to an empty string.
Corresponds to `django.db.models.fields.CharField`
or `django.db.models.fields.TextField`.
-**Signature:** `CharField(max_length=None, min_length=None)`
+**Signature:** `CharField(max_length=None, min_length=None, allow_none=False)`
## URLField