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

Fix model multiple choice preference to react correctly to deletion handler #244

Merged

Conversation

hansegucker
Copy link
Contributor

If you delete an object whose model is also used for a model multiple choice preference, it will cause some trouble because the preference uses create_deletion_handler to create a handler for the delete signal of this model. For a normal model choice field that works perfectly, but not for a model multiple choice field: The serializer only supports querysets and not single objects as provided through the signal handler.

@hansegucker
Copy link
Contributor Author

@agateblue Is there any progress on this topic? It would be nice to get at least some feedback because this a very critical bug in our school information system AlekSIS.

Copy link
Owner

@agateblue agateblue left a comment

Choose a reason for hiding this comment

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

Thank you!

@agateblue
Copy link
Owner

Hi @hansegucker. Apologies for the delay and thank you for the contribution. Let's merge and I'll try to make a release next week.

Take care

@agateblue agateblue merged commit b0c8b03 into agateblue:develop Jul 24, 2021
@hansegucker
Copy link
Contributor Author

Hi @hansegucker. Apologies for the delay and thank you for the contribution. Let's merge and I'll try to make a release next week.

Thanks for merging, @agateblue! Is there any progress with releasing a new version?

@hansegucker hansegucker mentioned this pull request Sep 1, 2021
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

2 participants