1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-01-26 07:01:19 +00:00

20 lines
722 B
Python
Raw Normal View History

2020-12-27 11:49:54 +01:00
# Copyright (C) 2020 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later
from django.apps import AppConfig
2020-12-28 19:19:01 +01:00
from django.db.models.signals import post_save, pre_save
2020-12-27 11:49:54 +01:00
class ParticipationConfig(AppConfig):
"""
2021-01-12 15:42:32 +01:00
The participation app contains the data about the teams, solutions, ...
2020-12-27 11:49:54 +01:00
"""
name = 'participation'
def ready(self):
2021-01-14 18:21:22 +01:00
from participation.signals import create_notes, create_team_participation, update_mailing_list
2020-12-27 11:49:54 +01:00
pre_save.connect(update_mailing_list, "participation.Team")
post_save.connect(create_team_participation, "participation.Team")
2021-01-14 18:21:22 +01:00
post_save.connect(create_notes, "participation.Passage")
post_save.connect(create_notes, "participation.Pool")