Skip to content

Commit

Permalink
order tag by name
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Sep 19, 2024
1 parent 92844a4 commit 923e320
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lemarche/cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 923e320

Please sign in to comment.