mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
Update 'default' explanation. Closes #1239
This commit is contained in:
parent
304b193efe
commit
3765865b4b
|
@ -41,7 +41,7 @@ Defaults to `True`.
|
||||||
|
|
||||||
### `default`
|
### `default`
|
||||||
|
|
||||||
If set, this gives the default value that will be used for the field if none is supplied. If not set the default behavior is to not populate the attribute at all.
|
If set, this gives the default value that will be used for the field if no input value is supplied. If not set the default behavior is to not populate the attribute at all.
|
||||||
|
|
||||||
May be set to a function or other callable, in which case the value will be evaluated each time it is used.
|
May be set to a function or other callable, in which case the value will be evaluated each time it is used.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user