diff --git a/CHANGELOG.md b/CHANGELOG.md index e1915009..19cef821 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,10 @@ Section Order: ### Security --> +### Fixed + +- Month order in alliance stats view (#377) + ## \[3.5.0\] - 2024-11-28 ### Fixed diff --git a/afat/views/statistics.py b/afat/views/statistics.py index bcb64c19..feef72e0 100644 --- a/afat/views/statistics.py +++ b/afat/views/statistics.py @@ -636,6 +636,7 @@ def alliance( # pylint: disable=too-many-statements too-many-branches too-many- character__alliance_id=allianceid, fatlink__created__year=year, ) + .order_by("fatlink__created__month") .values("fatlink__created__month") .annotate(fat_count=Count("id")) )