Fixes #3872: Limit related IPs table

This commit is contained in:
Saria Hajjar 2020-01-09 14:48:21 +00:00
parent 54227ca9c7
commit 73e456495f
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
* [#3856](https://github.com/netbox-community/netbox/issues/3856) - Allow filtering VM interfaces by multiple MAC addresses
* [#3857](https://github.com/netbox-community/netbox/issues/3857) - Fix group custom links rendering
* [#3862](https://github.com/netbox-community/netbox/issues/3862) - Allow filtering device components by multiple device names
* [#3872](https://github.com/netbox-community/netbox/issues/3872) - Limit number of related IPs
---

View File

@ -676,7 +676,7 @@ class IPAddressView(PermissionRequiredMixin, View):
address=str(ipaddress.address)
).filter(
vrf=ipaddress.vrf, address__net_contained_or_equal=str(ipaddress.address)
)
)[:50]
related_ips_table = tables.IPAddressTable(list(related_ips), orderable=False)
return render(request, 'ipam/ipaddress.html', {