导出excel bug

pull/1/head
李强 2021-03-11 00:06:17 +08:00
parent c0e6bc5073
commit 606944b8c2
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ def export_excel_save_model(request,field_data,data,FilName):
savefile.type = 'application/vnd.ms-excel'
savefile.size = os.path.getsize(os.path.join(settings.MEDIA_ROOT, file_rul))
savefile.address = '本地存储'
savefile.creator = request.user.id
savefile.creator = request.user
savefile.modifier = request.user.username
savefile.save()
return SaveFileSerializer(savefile).data