From 2ef73724dbe10bdced1b10079a9f470c6b893bc5 Mon Sep 17 00:00:00 2001 From: Hojagulyyev Date: Wed, 15 Nov 2023 18:49:42 +0500 Subject: [PATCH] feat(clans): order accounts by commits count in overview page --- apps/clans/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/clans/views.py b/apps/clans/views.py index 2651876..f912067 100644 --- a/apps/clans/views.py +++ b/apps/clans/views.py @@ -32,7 +32,7 @@ def overview(request): diaries_count=Count("diaries", distinct=True), diary_commits_count=Count("diaries__commits", distinct=True), ) - .order_by("-level") + .order_by("-diary_commits_count") ) paginated_account_queryset = paginate(account_queryset, page, page_size)