Set on_delete=models.CASCADE on all ForeignKey fields

This is the bardware compatible value that will be needed once we
upgrade django later.
This commit is contained in:
Magnus Hagander
2020-03-31 22:33:51 +02:00
parent d3a3621a48
commit 46606e5284
28 changed files with 54 additions and 54 deletions

View File

@ -19,7 +19,7 @@ class MailingListGroup(models.Model):
class MailingList(models.Model):
group = models.ForeignKey(MailingListGroup, null=False)
group = models.ForeignKey(MailingListGroup, null=False, on_delete=models.CASCADE)
listname = models.CharField(max_length=64, null=False, blank=False, unique=True)
active = models.BooleanField(null=False, default=False)
description = models.TextField(null=False, blank=True)