1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-25 18:22:21 +00:00
plateforme-corres2math/apps/participation/apps.py
2020-10-15 20:39:34 +02:00

13 lines
528 B
Python

from django.apps import AppConfig
from django.db.models.signals import post_save, pre_delete, pre_save
class ParticipationConfig(AppConfig):
name = 'participation'
def ready(self):
from participation.signals import create_team_participation, delete_related_videos, update_mailing_list
pre_save.connect(update_mailing_list, "participation.Team")
pre_delete.connect(delete_related_videos, "participation.Participation")
post_save.connect(create_team_participation, "participation.Team")