Skip to content

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

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

Closed

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.

@jackton1 jackton1 force-pushed the fix-clone-linked-m2m-set branch from e76385d to ebdd083 Compare May 31, 2025 03:23
@jackton1 jackton1 closed this May 31, 2025
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.

2 participants