plateforme-corres2math/apps/participation/signals.py

6 lines
150 B
Python

from participation.models import Participation
def create_team_participation(instance, **_):
Participation.objects.get_or_create(team=instance)