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

Distinct solutions

This commit is contained in:
Yohann D'ANELLO 2020-05-07 11:58:43 +02:00
parent fc0b87e690
commit 393ac6bd31

View File

@ -327,7 +327,7 @@ class SolutionsOrgaListView(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(pools__juries=self.request.user)) qs = qs.filter(Q(team__tournament__organizers=self.request.user) | Q(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',
'problem',) 'problem',).distinct()
class SynthesesView(TeamMixin, BaseFormView, SingleTableView): class SynthesesView(TeamMixin, BaseFormView, SingleTableView):