-
Notifications
You must be signed in to change notification settings - Fork 94
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
Can't change a field in a copied embedded model that's part of a collection #228 #321
Labels
bug
Something isn't working
Comments
bartoszflis-silvair
added a commit
to SilvairGit/odmantic
that referenced
this issue
Jan 17, 2023
Find all instances of _BaseODMModel subclasses, including those stored in lists or tuples, and set the required attribute on them during copy. Fixes art049#321.
bartoszflis-silvair
added a commit
to SilvairGit/odmantic
that referenced
this issue
Jan 18, 2023
Find all instances of _BaseODMModel subclasses, including those stored in lists or tuples, and set the required attribute on them during copy. Fixes art049#321.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
Given a model definition like this:
When I call copy.e[0].f = 2
Then an
AttributeError: 'E' object has no attribute '__fields_modified__'
occursEnvironment
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
):Additional context
This is a continuation of #228 .
The text was updated successfully, but these errors were encountered: