[Answered ]-Django – What happens when you delete an entity in a table that has a foreign key ManyToMany relationship to another?

1πŸ‘

βœ…

If "Britney Britney" is deleted from the Author table, "Britney Britney" is also removed from the book authors (this also applies in reverse). Django does not throw an exception, simply the deleted instance will no longer be accessible through the many-to-many relationship.

Leave a comment