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

Allow models.PROTECT in the models #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

monsanto-pinheiro
Copy link

Catch exception 'ProtectedError' when try to remove a pk with a relation in the model.
Only have to define "on_delete=models.PROTECT" in the model fields.

Catch exception 'ProtectedError' when try to remove a pk with a relation in the model.
Only have to define "on_delete=models.PROTECT" in the model fields.
@trco
Copy link
Owner

trco commented Apr 10, 2020

@monsanto-pinheiro Thanks for your PR, however I can't consider it unless it includes test for the change. Please add a test and I would gladly approve this PR.

@monsanto-pinheiro
Copy link
Author

I only did tests for 'tests_unit'. I didn't for functional. Please, can you do it?
cheers,

@trco
Copy link
Owner

trco commented Jul 1, 2023

@monsanto-pinheiro Same as in #126 (comment). Sorry for not including your PR back in 2020. I'm again working on this package from time to time thus I would like to ask you if you're interested in adjusting this outdated PR to the current code. It would be great to have you as collaborator. Otherwise I would like to thank you for your contribution and include your idea in one of the next releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants