def METHOD_NAME(cls, record):
    """Detect is `is_active` field changed.
    In this case, we need to reindex related accounts to set them as
    inactive into the AcqAccount ES index.
    :param record: the record to index.
    """
    try:
        original_record = BudgetsSearch().get_record_by_pid(record.pid)
        if record.is_active != original_record['is_active']:
            for account in record.get_related_accounts():
                account.reindex()
    except NotFoundError:
        pass