def get_entity_data(instance, app, option):
    """Prepares the fields/data for display"""
    model = type(instance)
    field_config = discover()[app][model.__name__]

    def compute(field_config):
        for field_name in field_config:
            if option > field_config[field_name]:
                yield field_name

    return OrderedDict([(model().class_meta.get_field(
        field_name).verbose_name, getattr(
            instance, field_name)) for field_name in itertools.islice(
                compute(field_config), len(field_config))])
dataset/ETHPy150Open faxad/djangoCRUD/djangocrud/core/templatetags/core_tags.py/get_entity_data/operator `in` -> `>`