From 026c86e825983485f7dffb628749af2972c7cdf8 Mon Sep 17 00:00:00 2001 From: "madjid.asa" Date: Thu, 28 Dec 2023 15:01:06 +0100 Subject: [PATCH] improve ordering --- lemarche/siaes/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lemarche/siaes/models.py b/lemarche/siaes/models.py index 06755c735..43e554ec6 100644 --- a/lemarche/siaes/models.py +++ b/lemarche/siaes/models.py @@ -490,8 +490,9 @@ def with_employees_stats(self): ) def order_by_super_siaes(self): - # need to be better specified in the future - return self.order_by("-tender_detail_display_count", "-tender_detail_display_count", "-completion_rate") + return self.order_by( + "-super_badge", "-tender_detail_contact_click_count", "-tender_detail_display_count", "-completion_rate" + ) class Siae(models.Model):