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

Fixes #8213: Fix ValueError exception under prefix IP addresses view

This commit is contained in:
jeremystretch
2022-01-04 09:15:25 -05:00
parent 79bebf7c9b
commit e11e8a5d64
2 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,10 @@
## v3.1.5 (FUTURE)
### Bug Fixes
* [#8213](https://github.com/netbox-community/netbox/issues/8213) - Fix ValueError exception under prefix IP addresses view
---
## v3.1.4 (2022-01-03)

View File

@ -505,9 +505,7 @@ class PrefixIPAddressesView(generic.ObjectChildrenView):
template_name = 'ipam/prefix/ip_addresses.html'
def get_children(self, request, parent):
return parent.get_child_ips().restrict(request.user, 'view').prefetch_related(
'vrf', 'role', 'tenant',
)
return parent.get_child_ips().restrict(request.user, 'view').prefetch_related('vrf', 'tenant')
def prep_table_data(self, request, queryset, parent):
show_available = bool(request.GET.get('show_available', 'true') == 'true')