diff --git a/README.md b/README.md index c4c58f3..371a6f4 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This plugin provide following Models: | NetBox 3.5 | >= 0.10.0 | | NetBox 3.6 | >= 0.11.0 | | NetBox 3.7 | >= 0.12.0 | -| NetBox 4.0 | >= 0.13.0 | +| NetBox 4.0 | >= 0.13.2 | ## Installation diff --git a/netbox_bgp/filtersets.py b/netbox_bgp/filtersets.py index b12b6ff..ae4b0a1 100644 --- a/netbox_bgp/filtersets.py +++ b/netbox_bgp/filtersets.py @@ -3,6 +3,7 @@ from django.db.models import Q from netaddr.core import AddrFormatError from netbox.filtersets import NetBoxModelFilterSet +from tenancy.filtersets import TenancyFilterSet from .models import ( Community, BGPSession, RoutingPolicy, RoutingPolicyRule, @@ -13,7 +14,7 @@ from dcim.models import Device, Site -class CommunityFilterSet(NetBoxModelFilterSet): +class CommunityFilterSet(NetBoxModelFilterSet, TenancyFilterSet): class Meta: model = Community @@ -65,7 +66,7 @@ def search(self, queryset, name, value): return queryset.filter(qs_filter) -class BGPSessionFilterSet(NetBoxModelFilterSet): +class BGPSessionFilterSet(NetBoxModelFilterSet, TenancyFilterSet): remote_as = django_filters.ModelMultipleChoiceFilter( field_name='remote_as__asn', diff --git a/netbox_bgp/version.py b/netbox_bgp/version.py index 7e0dc0e..83ce76f 100644 --- a/netbox_bgp/version.py +++ b/netbox_bgp/version.py @@ -1 +1 @@ -__version__ = "0.13.1" +__version__ = "0.13.2"