update docs for bool to match code (#911)

* update docs for bool to match code

* add changelog
This commit is contained in:
Trim21
2019-10-17 21:57:56 +08:00
committed by Samuel Colvin
parent ed7b216e5f
commit afba60f112
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
update docs for bool missing valid value.
+1 -1
View File
@@ -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