def group_extras_save(extras_dicts, context):
    model = context['model']
    session = context['session']
    result_dict = {}
    for extra_dict in extras_dicts:
        if extra_dict.get('deleted'):
            continue
        result_dict[extra_dict['key']] = extra_dict['value']
    return result_dict
def group_extras_save(extras_dicts, context):
    model = context['model']
    session = context['session']
    result_dict = {}
    for extra_dict in extras_dicts:
        if extra_dict.get('deleted'):
            continue
        result_dict[extra_dict['key']] = extra_dict['value']
    return result_dict