Use BaseModel.rel where needed

This will work well if in the case of task reopen the finished_at will be reset. Is reopen supported now?