1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #9663: Omit available IP annotations when filtering prefix child IPs list

This commit is contained in:
jeremystretch
2022-08-25 10:34:18 -04:00
parent 9da9a209a5
commit 5f37699736
2 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,7 @@
### Bug Fixes
* [#9663](https://github.com/netbox-community/netbox/issues/9663) - Omit available IP annotations when filtering prefix child IPs list
* [#10040](https://github.com/netbox-community/netbox/issues/10040) - Fix exception when ordering prefixes by flat representation
* [#10053](https://github.com/netbox-community/netbox/issues/10053) - Custom fields header should not be displayed when editing circuit terminations with no custom fields
* [#10055](https://github.com/netbox-community/netbox/issues/10055) - Fix extraneous NAT indicator by device primary IP

View File

@ -526,8 +526,7 @@ class PrefixIPAddressesView(generic.ObjectChildrenView):
return parent.get_child_ips().restrict(request.user, 'view').prefetch_related('vrf', 'tenant', 'tenant__group')
def prep_table_data(self, request, queryset, parent):
show_available = bool(request.GET.get('show_available', 'true') == 'true')
if show_available:
if not request.GET.get('q'):
return add_available_ipaddresses(parent.prefix, queryset, parent.is_pool)
return queryset