From f886f3c98f2291ea73fe00a15a5355cdfdd32aef Mon Sep 17 00:00:00 2001 From: sinavir Date: Sun, 2 Mar 2025 17:53:49 +0100 Subject: [PATCH] fix: Sort poll answers by creationDate --- calendrier/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendrier/views.py b/calendrier/views.py index 6d2fc07..26e7a6c 100644 --- a/calendrier/views.py +++ b/calendrier/views.py @@ -287,7 +287,7 @@ class ViewEvent(LoginRequiredMixin, TemplateView): context["event"] = event context["instrument_count"] = instrument_count_l - context["participants"] = participants + context["participants"] = participants.order_by('-creationDate') context["nboui"] = len(participants.filter(reponse="oui")) context["nbpe"] = len(participants.filter(reponse="pe")) context["nbnon"] = len(participants.filter(reponse="non"))