From 082279b926cea37d6da9c69bbb3bd5777a054c85 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 7 Dec 2023 23:28:36 +0000 Subject: [PATCH] format --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 610c323..e48c39d 100644 --- a/core/models.py +++ b/core/models.py @@ -391,6 +391,7 @@ class Meta: from django.dispatch import receiver from django.core.exceptions import ValidationError + @receiver(m2m_changed, sender=Team.members.through) def team_m2m_clean(sender, instance, action, **kwargs): if action == "post_clear": @@ -402,4 +403,3 @@ def team_m2m_clean(sender, instance, action, **kwargs): if instance.is_empty(): print("Deleting empty team: ", instance.name) instance.delete() -