mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-01 17:21:16 +02:00
Auto select the single tournament for ETEAM
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -15,6 +15,8 @@ def create_team_participation(instance, created, raw, **_):
|
||||
"""
|
||||
if not raw:
|
||||
participation = Participation.objects.get_or_create(team=instance)[0]
|
||||
if settings.TFJM_APP == "ETEAM":
|
||||
participation.tournament = Tournament.objects.first()
|
||||
participation.save()
|
||||
if not created:
|
||||
participation.team.create_mailing_list()
|
||||
|
Reference in New Issue
Block a user