Skip to content

Commit 986e6c3

Browse files
IdirLISNObada Haddad
authored andcommitted
cascade delete on competition groups
1 parent bea4383 commit 986e6c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/apps/competitions/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Competition(models.Model):
6060
blank=True,
6161
related_name='competitions',
6262
verbose_name="group of participants",
63+
on_delete=models.CASCADE,
6364
help_text="Competition owner being able to create groups of users."
6465
)
6566

0 commit comments

Comments
 (0)