{% trans "Background tasks." %}
+{% trans "Long-running operations which passbook executes in the background." %}
{{ task.task_name }}diff --git a/passbook/admin/views/tasks.py b/passbook/admin/views/tasks.py index 796616993..7d0be779d 100644 --- a/passbook/admin/views/tasks.py +++ b/passbook/admin/views/tasks.py @@ -14,7 +14,9 @@ class TaskListView(AdminRequiredMixin, TemplateView): def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: kwargs = super().get_context_data(**kwargs) - kwargs["object_list"] = TaskInfo.all() + kwargs["object_list"] = sorted( + TaskInfo.all().values(), key=lambda x: x.task_name + ) kwargs["task_successful"] = TaskResultStatus.SUCCESSFUL kwargs["task_warning"] = TaskResultStatus.WARNING kwargs["task_error"] = TaskResultStatus.ERROR