Add allow_null serialization output note

This commit is contained in:
Ryan P Kilby 2017-12-01 03:57:34 -05:00
parent 97f7a82b37
commit 41a7ebe606

View File

@ -45,6 +45,8 @@ Defaults to `True`.
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. 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.
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.
Defaults to `False` Defaults to `False`
### `default` ### `default`