Skip to content
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

fix: models copied via Config.copy_on_model_validation always have all fields #3201

Merged
merged 1 commit into from Dec 19, 2021

Conversation

PrettyWood
Copy link
Member

Small regression in #2231.
The shallow copy done with Config.copy_on_model_validation = True (default behaviour)
was using excluded / included fields when it should just copy everything

closes #3195

…all fields

Small regression in pydantic#2231.
The shallow copy done with `Config.copy_on_model_validation = True` (default behaviour)
was using excluded / included fields when it should just copy everything

closes pydantic#3195
@PrettyWood
Copy link
Member Author

Please review

@PrettyWood PrettyWood mentioned this pull request Dec 19, 2021
4 tasks
@samuelcolvin samuelcolvin merged commit 5ad73d0 into pydantic:master Dec 19, 2021
@PrettyWood PrettyWood deleted the fix/exclude branch December 19, 2021 10:41
@NunchakusLei
Copy link

Is this PR raised the issue #3641?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Field(..., exclude=True) are missing from nested BaseModel objects
3 participants