New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serializer.run_validators does not add defaults from read_only fields to data. #8974
Comments
can you send a PR with unit tests? |
I think this code is correct.
|
in that case we can close this issue or move this to discussion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems there's a typo in
Serializer.run_validators
method which is supposed to update initial data with default values from read-only fields. Instead, the value remains unchanged.Looks like it should be
value.update(to_validate)
instead ofto_validate.update(value)
The text was updated successfully, but these errors were encountered: