mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 12:12:19 +03:00
Update docs/api-guide/fields.md
This commit is contained in:
parent
053c39200b
commit
c9dfe68af8
|
@ -72,7 +72,7 @@ Notes regarding default value propagation from model to serializer:
|
||||||
|
|
||||||
All the default values from model will pass as default to the serializer and the options method.
|
All the default values from model will pass as default to the serializer and the options method.
|
||||||
|
|
||||||
if the default is callable then it is propagated in serializer which is evaluated at each time but
|
If the default is callable then it will be propagated in serializer which is evaluated at each time but
|
||||||
not in options method.
|
not in options method.
|
||||||
|
|
||||||
If the value for given field is not given then default value will be present in the serializer and available in serializer's methods. Specified validation on given field will be evaluated on default value as that field will be present in the serializer.
|
If the value for given field is not given then default value will be present in the serializer and available in serializer's methods. Specified validation on given field will be evaluated on default value as that field will be present in the serializer.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user