When we were trying to delete a stage in project where there were some tasks, an error was raised because of the 'project.task.history.cumulative' records that inherit 'project.task.history' which have a compute method on on end_date. To fix this, we set the 'compute' attribute to 'None' and the readonly 'attribute' to 'True'.