From 923e3206574e36451c8083bc8a3ab0dbaad4d962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Reuiller?= Date: Tue, 17 Sep 2024 17:27:00 +0200 Subject: [PATCH] order tag by name --- lemarche/cms/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lemarche/cms/models.py b/lemarche/cms/models.py index 812859417..c5d890c57 100644 --- a/lemarche/cms/models.py +++ b/lemarche/cms/models.py @@ -109,6 +109,7 @@ def get_context(self, request, *args, **kwargs): Tag.objects.filter(contentpage__in=ContentPage.objects.descendant_of(self).live()) .annotate(usecount=Count("contentpage")) .filter(usecount__gte=1) + .order_by("name") ) return context