Stop applications from removing all data related to them

reminder
Etzelia 2019-01-22 17:50:06 +01:00
parent 16825f0dd2
commit 681a585818
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Player(models.Model):
auth_user = models.OneToOneField(User, on_delete=models.DO_NOTHING, null=True, blank=True) auth_user = models.OneToOneField(User, on_delete=models.DO_NOTHING, null=True, blank=True)
uuid = models.CharField(max_length=36, unique=True) uuid = models.CharField(max_length=36, unique=True)
username = models.CharField(max_length=20) 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) first_seen = models.DateField(null=True, blank=True)
last_seen = models.DateField(null=True, blank=True) last_seen = models.DateField(null=True, blank=True)