From 538af6afc529a3602041c09ac6cf3b53c73d5f32 Mon Sep 17 00:00:00 2001
From: Yohann D'ANELLO <yohann.danello@gmail.com>
Date: Thu, 12 Mar 2020 01:22:07 +0100
Subject: [PATCH] Buttons are ordered

---
 apps/note/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/note/views.py b/apps/note/views.py
index 8bb4165e..82f2f4aa 100644
--- a/apps/note/views.py
+++ b/apps/note/views.py
@@ -141,7 +141,7 @@ class ConsoView(LoginRequiredMixin, SingleTableView):
         """
         context = super().get_context_data(**kwargs)
         context['transaction_templates'] = TransactionTemplate.objects.filter(display=True) \
-            .order_by('category')
+            .order_by('category').order_by('name')
         context['title'] = _("Consumptions")
         context['polymorphic_ctype'] = ContentType.objects.get_for_model(TemplateTransaction).pk
 
-- 
GitLab