Order passages by position rather than id
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
0181a1392d
commit
29d9432ca2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue