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

@@ -207,7 +207,7 @@ class RIRListView(PermissionRequiredMixin, ObjectListView):
'deprecated': 0,
'available': 0,
}
aggregate_list = Aggregate.objects.filter(family=family, rir=rir)
aggregate_list = Aggregate.objects.filter(prefix__family=family, rir=rir)
for aggregate in aggregate_list:
queryset = Prefix.objects.filter(prefix__net_contained_or_equal=str(aggregate.prefix))