def METHOD_NAME(self):
    for subsequent_id in self:
        if subsequent_id.operation_performed:
            raise UserWarning(
                "The document cannot be deleted: the "
                "subsequent document has already been "
                "generated."
            )
    return super().METHOD_NAME()