From ac569fc73679d5842b1605b6e4be6dd8742858ff Mon Sep 17 00:00:00 2001 From: Thomas Fargeix Date: Mon, 14 Oct 2024 21:59:57 +0200 Subject: [PATCH] Fix #39: Use default order for DFG in Application page --- netbox_data_flows/views/applications.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/netbox_data_flows/views/applications.py b/netbox_data_flows/views/applications.py index 7f315c5..d6236e9 100644 --- a/netbox_data_flows/views/applications.py +++ b/netbox_data_flows/views/applications.py @@ -42,11 +42,9 @@ def get_extra_context(self, request, instance): "application", "application__role", "parent", - ) - .annotate( + ).annotate( dataflow_count=Count("dataflows", distinct=True), ) - .order_by(*models.DataFlowGroup._meta.ordering) ) dataflowgroups_table.configure(request)