def prepare_form_entry_export_data(form_entry, form_element_entries=None,
    form_handler_entries=None):
    """Prepare form entry export data.

    :param fobi.modes.FormEntry form_entry: Instance of.
    :param django.db.models.QuerySet form_element_entries: QuerySet of
        FormElementEntry instances.
    :param django.db.models.QuerySet form_handler_entries: QuerySet of
        FormHandlerEntry instances.
    :return str:
    """
    data = {'name': form_entry.name, 'slug': form_entry.slug, 'is_public': 
        False, 'active_date_from': form_entry.active_date_from,
        'active_date_to': form_entry.active_date_to, 'inactive_page_title':
        form_entry.inactive_page_title, 'inactive_page_message': form_entry
        .inactive_page_message, 'is_cloneable': False, 'success_page_title':
        form_entry.success_page_title, 'success_page_message': form_entry.
        success_page_message, 'action': form_entry.action, 'form_elements':
        [], 'form_handlers': []}
    if not form_element_entries:
        form_element_entries = form_entry.formelemententry_set.all()[:]
    if not form_handler_entries:
        form_handler_entries = form_entry.formhandlerentry_set.all()[:]
    for form_element_entry in form_element_entries:
        data['form_elements'].append({'plugin_uid': form_element_entry.
            plugin_uid, 'position': form_element_entry.position,
            'plugin_data': form_element_entry.plugin_data})
    for form_handler_entry in form_handler_entries:
        data['form_handlers'].append({'plugin_uid': form_handler_entry.
            plugin_uid, 'plugin_data': form_handler_entry.plugin_data})
    return data
