def export_to_excel(modeladmin, request, queryset): return queryset_to_excel(queryset)
def export_to_excel_all(request, *args, **kwargs): queryset = Event.objects.all() return queryset_to_excel(queryset)