Skip to content

Commit 5f42cb7

Browse files
Ryan P Kilbycarltongibson
authored andcommitted
Add allow_null serialization output note (#5641)
1 parent 905a557 commit 5f42cb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api-guide/fields.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Defaults to `True`.
4545

4646
Normally an error will be raised if `None` is passed to a serializer field. Set this keyword argument to `True` if `None` should be considered a valid value.
4747

48+
Note that setting this argument to `True` will imply a default value of `null` for serialization output, but does imply a default for input deserialization.
49+
4850
Defaults to `False`
4951

5052
### `default`

0 commit comments

Comments
 (0)