Stop applications from removing all data related to them
parent
16825f0dd2
commit
681a585818
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue