Update fields.md explaining how the `source` argument affects `.validated_data` (#10008)
* Update fields.md explaining how the `source` argument affects structure of `.validated_data`
One may think that, after successful validation, a key in the `.validated_data` attribute of a serializer always equals the corresponding field name in the serializer. However, that may not be the case if the field has been defined in the serializer with a dotted path value in its `source` argument. In that case, what is actually included in `.validated_data` is a nested dictionary that is derived by expanding the dotted path of the `source` argument. This addition in the documentation clarifies the situation and explains why DRF follows that behavior.
---------
Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com> P
Petros Moisiadis committed
aa1876b8b6009a618e6241f91e2c2d6dfbacb5d9
Parent: 000bb33
Committed by GitHub <noreply@github.com>
on 8/6/2026, 3:19:47 PM