This is controlled through the definition in the model (`on_delete` field on the foreign keys).