From ff31558252e731b6ccbf9d7f7fa221fc54a7c141 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 12 Dec 2023 08:27:26 -0800 Subject: [PATCH] Fix: Sort consumption templates by order by default (#4956) --- src/documents/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index 92d37adf5..6533c22f3 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -1347,7 +1347,7 @@ class ConsumptionTemplateViewSet(ModelViewSet): model = ConsumptionTemplate - queryset = ConsumptionTemplate.objects.all().order_by("name") + queryset = ConsumptionTemplate.objects.all().order_by("order") class CustomFieldViewSet(ModelViewSet):