mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 21:18:16 -06:00
14729 review fixes
This commit is contained in:
parent
f1e585c2b9
commit
f143c90387
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user