django-bootstrap-modal-forms
django-bootstrap-modal-forms copied to clipboard
Allow models.PROTECT in the models
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.
@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.
I only did tests for 'tests_unit'. I didn't for functional. Please, can you do it? cheers,
@monsanto-pinheiro Same as in https://github.com/trco/django-bootstrap-modal-forms/pull/126#issuecomment-1615846203. 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.