Django admin: better export to XLS

The goal here is to make a slick gui for selecting exactly what the user wants to export from Django’s Change List view. It will be an global action, so lets start there. [python] def export_simple_selected_objects(modeladmin, request, queryset): selected_int = queryset.values_list(‘id’, flat=True) selected = [] for s in selected_int: selected.append(str(s)) ct = ContentType.objects.get_for_model(queryset.model) return HttpResponseRedirect("/export_to_xls/?ct=%s&ids=%s"… Continue reading Django admin: better export to XLS