修复字典管理新增值时is_value错误的bug

This commit is contained in:
阿辉
2024-12-17 10:58:13 +08:00
parent a36dcfa1e5
commit 15c87ddd26
3 changed files with 313 additions and 303 deletions

View File

@@ -308,7 +308,7 @@ class ExportSerializerMixin:
async_export_data.delay(
data,
str(f"导出{get_verbose_name(queryset)}-{datetime.datetime.now().strftime('%Y%m%d%H%M%S')}.xlsx"),
DownloadCenter.objects.create(creator=request.user, task_name=f'{get_verbose_name(queryset)}数据导出任务', dept_belong_id=request.user.dept).pk,
DownloadCenter.objects.create(creator=request.user, task_name=f'{get_verbose_name(queryset)}数据导出任务', dept_belong_id=request.user.dept_id).pk,
self.export_field_label
)
return SuccessResponse(msg="导入任务已创建,请前往‘下载中心’等待下载")