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 17, 2024
1 parent e0b4d9c commit 6a6d580
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 @@ -95,6 +95,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 6a6d580

Please sign in to comment.