Add required on_delete parameters for Dj2.0 compatibility

This commit is contained in:
Basraah
2017-09-28 12:32:33 +10:00
parent fff2cd32d5
commit 11fca74fec
15 changed files with 156 additions and 18 deletions

View File

@@ -2,7 +2,7 @@ from django.db import models
class MumbleUser(models.Model):
user = models.OneToOneField('auth.User', related_name='mumble', null=True)
user = models.OneToOneField('auth.User', related_name='mumble', null=True, on_delete=models.CASCADE)
username = models.CharField(max_length=254, unique=True)
pwhash = models.CharField(max_length=80)
hashfn = models.CharField(max_length=20, default='sha1')