14729 review fixes

This commit is contained in:
Arthur 2024-01-18 13:16:29 -08:00
parent f1e585c2b9
commit f143c90387

View File

@ -247,6 +247,7 @@ class BackgroundQueuesListView(LoginRequiredMixin, View):
def get(self, request): def get(self, request):
table = tables.BackgroundQueueTable(get_statistics(run_maintenance_tasks=True)["queues"]) table = tables.BackgroundQueueTable(get_statistics(run_maintenance_tasks=True)["queues"])
table.configure(request)
return render(request, 'core/background_tasks.html', { return render(request, 'core/background_tasks.html', {
'table': table, 'table': table,
}) })
@ -264,6 +265,7 @@ class BackgroundTasksListView(LoginRequiredMixin, View):
jobs = [] jobs = []
table = tables.BackgroundTaskTable(data=jobs, queue_index=queue_index) table = tables.BackgroundTaskTable(data=jobs, queue_index=queue_index)
table.configure(request)
return render(request, 'core/background_tasks_queue.html', { return render(request, 'core/background_tasks_queue.html', {
'table': table, 'table': table,
'queue': queue, 'queue': queue,