Update netbox/extras/views.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
Daniel Sheppard 2024-01-20 11:28:35 -06:00 committed by GitHub
parent a2086e7995
commit 7560f4a013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1059,7 +1059,7 @@ class ReportView(ContentTypePermissionRequiredMixin, View):
report = module.reports[name]() report = module.reports[name]()
jobs = module.get_jobs(name) jobs = module.get_jobs(name)
report.result = jobs.exclude( report.result = jobs.filter(
status__in=JobStatusChoices.TERMINAL_STATE_CHOICES status__in=JobStatusChoices.TERMINAL_STATE_CHOICES
).first() ).first()