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
ada14ece80
commit
660aad5b69
|
@ -73,7 +73,6 @@ 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 will be propagated to & evaluated every time in the serializer but not in options method.
|
If the default is callable then it will be propagated to & evaluated every time in the serializer 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