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

Actually save the m2m on the destination for Wagtail/ClusterableModel #857

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pcraciunoiu
Copy link

Discovered this while testing the setting for _clone_linked_m2m_fields.

In my case, without the duplicate.save(), the values were not persisted to the database.

This was using Wagtail's ClusterableModel, so it's possible that's causing the issue.

But I checked multiple times and I I query the through table before the .save() and after, there is a difference.

I'm not sure what a better fix would be.

@pcraciunoiu pcraciunoiu changed the title Actually save the m2m on the destination. Actually save the m2m on the destination for Wagtail/ClusterableModel Feb 8, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing a fix, could you ensure that the test covers your changes if applicable.

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.

None yet

1 participant