mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 17:42:24 +00:00
Distinct solutions
This commit is contained in:
parent
fc0b87e690
commit
393ac6bd31
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user