diff options
Diffstat (limited to 'ishtar_common/admin.py')
-rw-r--r-- | ishtar_common/admin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/admin.py b/ishtar_common/admin.py index bd068890e..98f7c2663 100644 --- a/ishtar_common/admin.py +++ b/ishtar_common/admin.py @@ -1428,8 +1428,8 @@ def launch_export_action(modeladmin, request, queryset): export_task.save() if not settings.USE_BACKGROUND_TASK: - return launch_export(export_task) - return launch_export.delay(export_task) + return launch_export(export_task.pk) + return launch_export.delay(export_task.pk) launch_export_action.short_description = _("Launch export") @@ -1474,8 +1474,8 @@ def launch_import_action(modeladmin, request, queryset): import_task.save() if not settings.USE_BACKGROUND_TASK: - return launch_import(import_task) - return launch_import.delay(import_task) + return launch_import(import_task.pk) + return launch_import.delay(import_task.pk) launch_import_action.short_description = _("Launch import") |