def undelete(self, content: Content): content.owner = self._user content.is_deleted = False content.revision_type = ActionDescription.UNDELETION
def delete(self, content: Content): content.owner = self._user content.is_deleted = True content.revision_type = ActionDescription.DELETION