Skip to content

Handling database protected errors in BSModalDeleteView #105

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
joancostacosta opened this issue May 16, 2020 · 3 comments
Closed

Handling database protected errors in BSModalDeleteView #105

joancostacosta opened this issue May 16, 2020 · 3 comments

Comments

@joancostacosta
Copy link

Deleting unreferenced records of my DB works fine in BSModalDeleteView, but when trying to delete a referenced record by foreign keys in other tables, i get this error page:
ProtectedError
How can I catch amb handle this exception in the modal form?
REGARDS

@trco
Copy link
Owner

trco commented May 16, 2020

@joancostacosta See PR #97 and reuse the custom DeleteMessageMixin from it. I'm considering to include this PR in the next release.

@trco
Copy link
Owner

trco commented Jun 15, 2020

Closed due to inactivity.

@trco trco closed this as completed Jun 15, 2020
@dwasyl
Copy link

dwasyl commented Aug 21, 2020

@trco For what it's worth, it would have handy to have that code included

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

No branches or pull requests

3 participants