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

Closes #7600: Include count of available IPs on prefix view

This commit is contained in:
jeremystretch
2021-12-29 09:59:25 -05:00
parent 9c9fcaf42f
commit f2aa35d3d2
3 changed files with 154 additions and 120 deletions

View File

@@ -418,7 +418,7 @@ class PrefixView(generic.ObjectView):
).filter(
prefix__net_contains=str(instance.prefix)
).prefetch_related(
'site', 'role'
'site', 'role', 'tenant'
)
parent_prefix_table = tables.PrefixTable(
list(parent_prefixes),