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
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@ class PoolDetailView(LoginRequiredMixin, DetailView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super().get_context_data(**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: if self.object.results_available or self.request.user.registration.is_volunteer:
# Hide notes before the end of the turn # Hide notes before the end of the turn