

def should_update(self, instance, **kwargs):
    return instance.is_active()

dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/search/search_indexes.py PageIndex.should_update/original