From 7b63af2e3ec9a906506e93c394d38046563f83fc Mon Sep 17 00:00:00 2001 From: Alessio Del Conte Date: Tue, 7 Jan 2025 14:16:03 +0100 Subject: [PATCH] Remove async bulk update --- drmaatic/job/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drmaatic/job/admin.py b/drmaatic/job/admin.py index a2de1e6..7c55567 100644 --- a/drmaatic/job/admin.py +++ b/drmaatic/job/admin.py @@ -94,7 +94,7 @@ def delete_queryset(self, request, queryset: QuerySet[Job]): t = threading.Thread(target=delete_jobs_from_file_system, args=(queryset,), daemon=True) t.start() # Set the jobs to deleted - Job.objects.abulk_update(queryset, ['deleted'], 1000) + Job.objects.bulk_update(queryset, ['deleted'], 1000) @admin.action(description="Delete and remove from database") def delete_and_remove(self, request, queryset):