1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 17:02:28 +00:00

Order passages by position rather than id

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-04-06 23:34:06 +02:00
parent 0181a1392d
commit 29d9432ca2
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -863,7 +863,7 @@ class PoolDetailView(LoginRequiredMixin, DetailView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["passages"] = PassageTable(self.object.passages.order_by('id').all())
context["passages"] = PassageTable(self.object.passages.order_by('position').all())
if self.object.results_available or self.request.user.registration.is_volunteer:
# Hide notes before the end of the turn