From 681a585818c18b9982354d41c4d48dff0f0ca1f8 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Tue, 22 Jan 2019 17:50:06 +0100 Subject: [PATCH] Stop applications from removing all data related to them --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index ea324de..7c24ea0 100644 --- a/models.py +++ b/models.py @@ -97,7 +97,7 @@ class Player(models.Model): auth_user = models.OneToOneField(User, on_delete=models.DO_NOTHING, null=True, blank=True) uuid = models.CharField(max_length=36, unique=True) username = models.CharField(max_length=20) - application = models.ForeignKey(Application, on_delete=models.CASCADE, null=True, blank=True) + application = models.ForeignKey(Application, on_delete=models.DO_NOTHING, null=True, blank=True) first_seen = models.DateField(null=True, blank=True) last_seen = models.DateField(null=True, blank=True)