mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-04 13:32:17 +02:00
Order tables
This commit is contained in:
@ -427,7 +427,8 @@ class PoolListView(LoginRequiredMixin, SingleTableView):
|
||||
qs = qs.filter(Q(juries=user) | Q(teams__tournament__organizers=user))
|
||||
elif user.participates:
|
||||
qs = qs.filter(teams=user.team)
|
||||
return qs.distinct()
|
||||
qs = qs.distinct().order_by('teams__tournament__date_start', 'teams__tournament__name', 'round',)
|
||||
return qs
|
||||
|
||||
|
||||
class PoolCreateView(AdminMixin, CreateView):
|
||||
|
Reference in New Issue
Block a user