plateforme-tfjm2/participation/apps.py

21 lines
775 B
Python
Raw Permalink Normal View History

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