plateforme-corres2math/apps/participation/signals.py

6 lines
150 B
Python
Raw Normal View History

2020-09-24 08:21:50 +00:00
from participation.models import Participation
def create_team_participation(instance, **_):
Participation.objects.get_or_create(team=instance)