class documentation

Mixin for the Patient, Tumor and Diagnose classes to block any editing or deletion attempts when the Dataset they belong to is locked.

Method delete Raise LockedDatasetError befor deleting if associated dataset is locked.
Method save Raise LockedDatasetError before saving if associated dataset is locked.
Property _must_raise Infer from class if an error should be raised on save/delete.
def delete(self, *args, **kwargs):

Raise LockedDatasetError befor deleting if associated dataset is locked.

def save(self, *args, **kwargs):

Raise LockedDatasetError before saving if associated dataset is locked.

@property
_must_raise =

Infer from class if an error should be raised on save/delete.