Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Only pass Model.__fields__ when casting event args #4356

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Nov 11, 2024

Attempting to initialize relationship fields in a sqlmodel model throws an error, so only pass defined pydantic fields if the type is a Model.

Attempting to initialize relationship fields in a sqlmodel model throws an
error, so only pass defined pydantic __fields__ if the type is a Model.
@masenf masenf merged commit 686548c into main Nov 12, 2024
33 of 34 checks passed
@masenf masenf deleted the masenf/only-cast-model-fields branch November 12, 2024 00:14
masenf added a commit that referenced this pull request Nov 12, 2024
Attempting to initialize relationship fields in a sqlmodel model throws an
error, so only pass defined pydantic __fields__ if the type is a Model.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants