From afba60f112e09039d555533d6459ac0671031213 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Thu, 17 Oct 2019 21:57:56 +0800 Subject: [PATCH] update docs for bool to match code (#911) * update docs for bool to match code * add changelog --- changes/911-trim21.md | 1 + docs/usage/types.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/911-trim21.md diff --git a/changes/911-trim21.md b/changes/911-trim21.md new file mode 100644 index 0000000..9443e88 --- /dev/null +++ b/changes/911-trim21.md @@ -0,0 +1 @@ +update docs for bool missing valid value. \ No newline at end of file diff --git a/docs/usage/types.md b/docs/usage/types.md index 6ba7844..c7737d7 100644 --- a/docs/usage/types.md +++ b/docs/usage/types.md @@ -239,7 +239,7 @@ A standard `bool` field will raise a `ValidationError` if the value is not one o * A valid boolean (i.e. `True` or `False`), * The integers `0` or `1`, * a `str` which when converted to lower case is one of - `'off', 'f', 'false', 'n', 'no', '1', 'on', 't', 'true', 'y', 'yes'` + `'0', 'off', 'f', 'false', 'n', 'no', '1', 'on', 't', 'true', 'y', 'yes'` * a `bytes` which is valid (per the previous rule) when decoded to `str` !!! note