def METHOD_NAME(self, data, type):
    should_update_registy = data.get('update_default_{}'.format(type), False)
    form_value = data.get('view_more_{}'.format(type), None)
    if should_update_registy and form_value:
        record_name = 'castle.resource_slide_view_more_{}'.format(type)
        try:
            default_value = get_registry_record(record_name)
        except Exception:
            return
        if form_value != default_value:
            set_registry_record(record_name, form_value)
    data['update_default_{}'.format(type)] = False