Skip to content

model: handle copying embedded model collections - #322

Open
bartoszflis-silvair wants to merge 1 commit into
art049:masterfrom
SilvairGit:embedded-model-collections-deep-copy
Open

bartoszflis-silvair wants to merge 1 commit into
art049:masterfrom
SilvairGit:embedded-model-collections-deep-copy

Conversation

@bartoszflis-silvair

Copy link
Copy Markdown

Fixes #321.

@bartoszflis-silvair
bartoszflis-silvair force-pushed the embedded-model-collections-deep-copy branch from e114afd to 9fa6897 Compare January 17, 2023 08:29
Comment thread odmantic/model.py Outdated
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
bartoszflis-silvair force-pushed the embedded-model-collections-deep-copy branch from 9fa6897 to 426f9a3 Compare January 18, 2023 07:18
@art049
art049 force-pushed the master branch 2 times, most recently from 5bd1656 to a99a258 Compare November 3, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't change a field in a copied embedded model that's part of a collection #228

2 participants