def index_data(models):
    """
    Index all needed objects.

    :param models: Models that should be indexed.
    :return: No return value (Void)
    """
    for model in models:
        for obj in model.objects.all():
            try:
                if not obj.can_index():
                    continue
            except AttributeError:
                pass
            obj.indexing(new=True)
