diff --git a/rocky/rocky/views/ooi_view.py b/rocky/rocky/views/ooi_view.py index cf898beda19..d13c93e0170 100644 --- a/rocky/rocky/views/ooi_view.py +++ b/rocky/rocky/views/ooi_view.py @@ -18,6 +18,7 @@ from octopoes.config.settings import DEFAULT_SCAN_LEVEL_FILTER, DEFAULT_SCAN_PROFILE_TYPE_FILTER from octopoes.models import OOI, ScanLevel, ScanProfileType from octopoes.models.ooi.findings import Finding, FindingType +from octopoes.models.ooi.reports import Report from octopoes.models.types import get_collapsed_types, type_by_name from rocky.paginator import RockyPaginator from rocky.views.mixins import ConnectorFormMixin, OctopoesView, OOIList, SingleOOIMixin, SingleOOITreeMixin @@ -29,7 +30,7 @@ class OOIFilterView(ConnectorFormMixin, OctopoesView): """ connector_form_class = ObservedAtForm - ooi_types = get_collapsed_types().difference({Finding, FindingType}) + ooi_types = get_collapsed_types().difference({Finding, FindingType, Report}) scan_levels = DEFAULT_SCAN_LEVEL_FILTER scan_profile_types = DEFAULT_SCAN_PROFILE_TYPE_FILTER diff --git a/rocky/tools/forms/ooi_form.py b/rocky/tools/forms/ooi_form.py index 9914d3b2fca..3b6a259673e 100644 --- a/rocky/tools/forms/ooi_form.py +++ b/rocky/tools/forms/ooi_form.py @@ -175,7 +175,7 @@ class ClearanceFilterForm(BaseRockyForm): ) -_EXCLUDED_OOI_TYPES = ("Finding", "FindingType") +_EXCLUDED_OOI_TYPES = ("Finding", "FindingType", "Report") SORTED_OOI_TYPES = sorted( [