mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Add allow_null serialization output note (#5641)
This commit is contained in:
parent
905a5579df
commit
5f42cb7027
|
@ -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.
|
||||
|
||||
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`
|
||||
|
||||
### `default`
|
||||
|
|
Loading…
Reference in New Issue
Block a user