As a user, I am prevented from deleting tasks if they have locked resources so that orphaned resource locks are never created
We're using a ManyToMany field to join Tasks to ReservedResources. The problem with this is that you can delete tasks which leaves the ReservedResource in limbo. To fix this, create a join model TaskReservedResource which uses an FK with on_delete set to PROTECT for tasks.
This issue was copied from issue #3380 which @daviddavis created, but which I accidentally deleted. Whoops. Luckily, I had a cached copy open.
Please register to edit this issue