Explorar el Código

Fixes #4455: Fix ordering of prefixes beneath aggregate when available space is hidden

Jeremy Stretch hace 5 años
padre
commit
26e37c1da6
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  1. 1 0
      docs/release-notes/version-2.8.md
  2. 2 0
      netbox/ipam/views.py

+ 1 - 0
docs/release-notes/version-2.8.md

@@ -9,6 +9,7 @@
 
 
 ### Bug Fixes
 ### Bug Fixes
 
 
+* [#4455](https://github.com/netbox-community/netbox/issues/4455) - Fix ordering of prefixes beneath aggregate when available space is hidden
 * [#4875](https://github.com/netbox-community/netbox/issues/4875) - Fix documentation for image attachments
 * [#4875](https://github.com/netbox-community/netbox/issues/4875) - Fix documentation for image attachments
 * [#4876](https://github.com/netbox-community/netbox/issues/4876) - Fix labels for sites in staging or decommissioning status
 * [#4876](https://github.com/netbox-community/netbox/issues/4876) - Fix labels for sites in staging or decommissioning status
 * [#4880](https://github.com/netbox-community/netbox/issues/4880) - Fix removal of tagged VLANs if not assigned in bulk interface editing
 * [#4880](https://github.com/netbox-community/netbox/issues/4880) - Fix removal of tagged VLANs if not assigned in bulk interface editing

+ 2 - 0
netbox/ipam/views.py

@@ -327,6 +327,8 @@ class AggregateView(PermissionRequiredMixin, View):
             prefix__net_contained_or_equal=str(aggregate.prefix)
             prefix__net_contained_or_equal=str(aggregate.prefix)
         ).prefetch_related(
         ).prefetch_related(
             'site', 'role'
             'site', 'role'
+        ).order_by(
+            'prefix'
         ).annotate_depth(
         ).annotate_depth(
             limit=0
             limit=0
         )
         )