|
19 | 19 | from dcim.models import (
|
20 | 20 | Cable, ConsolePort, Device, DeviceType, Interface, PowerPanel, PowerFeed, PowerPort, Rack, Site,
|
21 | 21 | )
|
22 |
| -from extras.choices import JobResultStatusChoices |
23 |
| -from extras.models import ObjectChange, JobResult |
| 22 | +from extras.models import ObjectChange |
24 | 23 | from extras.tables import ObjectChangeTable
|
25 | 24 | from ipam.models import Aggregate, IPAddress, IPRange, Prefix, VLAN, VRF
|
26 | 25 | from netbox.constants import SEARCH_MAX_RESULTS, SEARCH_TYPES
|
@@ -48,13 +47,6 @@ def get(self, request):
|
48 | 47 | pk__lt=F('_path__destination_id')
|
49 | 48 | )
|
50 | 49 |
|
51 |
| - # Report Results |
52 |
| - report_content_type = ContentType.objects.get(app_label='extras', model='report') |
53 |
| - report_results = JobResult.objects.filter( |
54 |
| - obj_type=report_content_type, |
55 |
| - status__in=JobResultStatusChoices.TERMINAL_STATE_CHOICES |
56 |
| - ).defer('data')[:10] |
57 |
| - |
58 | 50 | def build_stats():
|
59 | 51 | org = (
|
60 | 52 | ("dcim.view_site", "Sites", Site.objects.restrict(request.user, 'view').count),
|
@@ -150,7 +142,6 @@ def build_stats():
|
150 | 142 | return render(request, self.template_name, {
|
151 | 143 | 'search_form': SearchForm(),
|
152 | 144 | 'stats': build_stats(),
|
153 |
| - 'report_results': report_results, |
154 | 145 | 'changelog_table': changelog_table,
|
155 | 146 | 'new_release': new_release,
|
156 | 147 | })
|
|
0 commit comments