How to prevent deletion if records in other tables are associated with a record? #589
Unanswered
ivankarmanow
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to prevent deletion if records in other tables are associated with a record? In SQLAlchemy I can specify NO ACTION in Foreign Key, but then how do I handle the deletion error? As far as I understand, on_model_delete cannot prevent deletion
Beta Was this translation helpful? Give feedback.
All reactions