1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 05:42:23 +00:00

Syntheses are distinct

This commit is contained in:
Yohann D'ANELLO 2020-05-15 20:45:36 +02:00
parent 8c0b2600f9
commit f55bd1f4bd

View File

@ -529,7 +529,7 @@ class SynthesesOrgaListView(OrgaMixin, SingleTableView):
if not self.request.user.admin: if not self.request.user.admin:
qs = qs.filter(Q(team__tournament__organizers=self.request.user) | Q(team__pools__juries=self.request.user)) qs = qs.filter(Q(team__tournament__organizers=self.request.user) | Q(team__pools__juries=self.request.user))
return qs.order_by('final', 'team__tournament__date_start', 'team__tournament__name', 'team__trigram', return qs.order_by('final', 'team__tournament__date_start', 'team__tournament__name', 'team__trigram',
'round', 'source',) 'round', 'source',).distinct()
class PoolListView(LoginRequiredMixin, SingleTableView): class PoolListView(LoginRequiredMixin, SingleTableView):