plateforme-corres2math/apps/participation/apps.py

12 lines
412 B
Python
Raw Normal View History

2020-09-21 13:41:55 +00:00
from django.apps import AppConfig
from django.db.models.signals import post_save, pre_save
2020-09-21 13:41:55 +00:00
class ParticipationConfig(AppConfig):
name = 'participation'
2020-09-24 08:21:50 +00:00
def ready(self):
from participation.signals import create_team_participation, update_mailing_list
pre_save.connect(update_mailing_list, "participation.Team")
2020-09-24 08:21:50 +00:00
post_save.connect(create_team_participation, "participation.Team")