Exemplo n.º 1
0
def export_selected_as_xlsx(modeladmin, request, queryset):
    """ Export the selected model instances as an Excel spreadsheet. """
    # pylint: disable=unused-argument
    return export_data(queryset, 'xlsx')
Exemplo n.º 2
0
def export_selected_as_csv(modeladmin, request, queryset):
    """ Export the selected model instances as comma-separated values (CSV). """
    # pylint: disable=unused-argument
    return export_data(queryset, 'csv')