(field, data_item)
return FieldList(
        field_list=field_list
    )
Processes field_list of a data item from fields in the uploaded excel sheet.

    Returns FieldList
Processes field_list of a data item from fields in the uploaded excel sheet.
Processes field_list of a data item from fields in the uploaded excel sheet .
def _process_item_field(field, data_item):
    """Processes field_list of a data item from fields in the uploaded excel sheet.

    Returns FieldList
    """
    # if field doesn't have properties
    if len(field.properties) == 0:
        return FieldList(
            field_list=[FixtureItemField(
                # using unicode here, to cast ints, and multi-language strings
                field_value=str(data_item['field'][field.field_name]),
                properties={}
            )]
        )

    field_list = []
    field_prop_combos = data_item['field'][field.field_name]
    prop_combo_len = len(field_prop_combos)
    prop_dict = data_item[field.field_name]
    for x in range(0, prop_combo_len):
        fix_item_field = FixtureItemField(
            field_value=str(field_prop_combos[x]),
            properties={prop: str(prop_dict[prop][x]) for prop in prop_dict}
        )
        field_list.append(fix_item_field)
    return FieldList(
        field_list=field_list
    )
def _process_item_field ( field , data_item ) : # if field doesn't have properties if len ( field . properties ) == 0 : return FieldList ( field_list = [ FixtureItemField ( # using unicode here, to cast ints, and multi-language strings field_value = str ( data_item [ 'field' ] [ field . field_name ] ) , properties = { } ) ] ) field_list = [ ] field_prop_combos = data_item [ 'field' ] [ field . field_name ] prop_combo_len = len ( field_prop_combos ) prop_dict = data_item [ field . field_name ] for x in range ( 0 , prop_combo_len ) : fix_item_field = FixtureItemField ( field_value = str ( field_prop_combos [ x ] ) , properties = { prop : str ( prop_dict [ prop ] [ x ] ) for prop in prop_dict } ) field_list . append ( fix_item_field ) return FieldList ( field_list = field_list )