diff --git a/core/utils/vendors.py b/core/utils/vendors.py index f68a4c31..61a210e9 100644 --- a/core/utils/vendors.py +++ b/core/utils/vendors.py @@ -7,7 +7,18 @@ from evibes.utils.misc import create_object def get_vendors_integrations(name: str | None = None) -> list[Type[AbstractVendor]]: vendors_integrations: list[Type[AbstractVendor]] = [] - vendors = Vendor.objects.filter(is_active=True, name=name) if name else Vendor.objects.filter(is_active=True) + vendors = ( + Vendor.objects.filter( + is_active=True, + integration_path__isnull=False, + name=name, + ) + if name + else Vendor.objects.filter( + is_active=True, + integration_path__isnull=False, + ) + ) for vendor in vendors: if vendor.integration_path: module_name = ".".join(vendor.integration_path.split(".")[:-1])