示例#1
0
文件: admin.py 项目: nabockh/code
def export_to_excel(modeladmin, request, queryset):
    return queryset_to_excel(queryset)
示例#2
0
文件: admin.py 项目: nabockh/code
def export_to_excel_all(request, *args, **kwargs):
    queryset = Event.objects.all()
    return queryset_to_excel(queryset)