Distinct solutions

This commit is contained in:
Yohann D'ANELLO 2020-05-07 11:58:43 +02:00
parent fc0b87e690
commit 393ac6bd31
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ class SolutionsOrgaListView(OrgaMixin, SingleTableView):
if not self.request.user.admin:
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',
'problem',)
'problem',).distinct()
class SynthesesView(TeamMixin, BaseFormView, SingleTableView):