mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-26 07:02:22 +00:00
12 lines
412 B
Python
12 lines
412 B
Python
from django.apps import AppConfig
|
|
from django.db.models.signals import post_save, pre_save
|
|
|
|
|
|
class ParticipationConfig(AppConfig):
|
|
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")
|