1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-29 13:41:04 +02:00

Bouton pour rendre les solutions accessibles pour le second tour en 1 clic

This commit is contained in:
Emmy D'Anello
2025-04-28 22:01:26 +02:00
parent 203fc3cd54
commit a84ffcf0a3
6 changed files with 474 additions and 369 deletions

View File

@ -440,6 +440,10 @@ class Tournament(models.Model):
return Participation.objects.filter(final=True)
return self.participation_set
@property
def organizers_and_presidents(self):
return VolunteerRegistration.objects.filter(Q(admin=True) | Q(organized_tournaments=self) | Q(pools_presided__tournament=self))
@property
def solutions(self):
if self.final: