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

Drop family column from Aggregate, Prefix, and IPAddress models

This commit is contained in:
Jeremy Stretch
2020-02-14 15:04:33 -05:00
parent 1a8eea5aa9
commit b475a575e4
10 changed files with 83 additions and 40 deletions

View File

@@ -13,4 +13,4 @@ class IPAddressManager(models.Manager):
IP address as a /32 or /128.
"""
qs = super().get_queryset()
return qs.annotate(host=RawSQL('INET(HOST(ipam_ipaddress.address))', [])).order_by('family', 'host')
return qs.annotate(host=RawSQL('INET(HOST(ipam_ipaddress.address))', [])).order_by('host')