plateforme-corres2math/apps/participation/apps.py

11 lines
313 B
Python
Raw Normal View History

2020-09-21 13:41:55 +00:00
from django.apps import AppConfig
2020-09-24 08:21:50 +00:00
from django.db.models.signals import post_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
post_save.connect(create_team_participation, "participation.Team")