What does on_delete do on Django models?
This is the behaviour to adopt when the referenced object is deleted. It is not specific to Django; this is an SQL standard. Although Django has its own implementation on top of SQL. (1) There are seven possible actions to take when such event occurs: CASCADE: When the referenced object is deleted, also delete the objects that have … Read more