1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-28 14:22:24 +00:00
plateforme-tfjm2/apps/participation/apps.py
2021-01-12 15:42:32 +01:00

18 lines
581 B
Python

# Copyright (C) 2020 by Animath
# SPDX-License-Identifier: GPL-3.0-or-later
from django.apps import AppConfig
from django.db.models.signals import post_save, pre_save
class ParticipationConfig(AppConfig):
"""
The participation app contains the data about the teams, solutions, ...
"""
name = 'participation'
def ready(self):
from participation.signals import create_team_participation, update_mailing_list
pre_save.connect(update_mailing_list, "participation.Team")
post_save.connect(create_team_participation, "participation.Team")