Changed block on_delete to set_null