1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Clean up script & report job views

This commit is contained in:
jeremystretch
2023-04-17 15:27:12 -04:00
parent a0893c2e8b
commit 7ecf3be33c
3 changed files with 8 additions and 6 deletions

View File

@@ -945,8 +945,7 @@ class ReportJobsView(ContentTypePermissionRequiredMixin, View):
jobs = Job.objects.filter(
object_type=object_type,
object_id=module.pk,
name=report.name,
status__in=JobStatusChoices.TERMINAL_STATE_CHOICES
name=report.name
)
jobs_table = JobTable(
@@ -1119,8 +1118,7 @@ class ScriptJobsView(ContentTypePermissionRequiredMixin, View):
jobs = Job.objects.filter(
object_type=object_type,
object_id=module.pk,
name=script.class_name,
status__in=JobStatusChoices.TERMINAL_STATE_CHOICES
name=script.class_name
)
jobs_table = JobTable(