upgrade to django 1.11.16 and python3.6

This commit is contained in:
cmile 2018-10-03 00:16:28 +02:00
parent b32465e85f
commit bc0258ea8f
17 changed files with 155 additions and 84 deletions

View file

@ -4,7 +4,7 @@ from django.db.models import signals
from account.signals import create_profile, delete_profile
class UserProfile(models.Model):
user = models.OneToOneField(User, editable=False)
user = models.OneToOneField(User, editable=False, on_delete=models.CASCADE)
uid = models.CharField(verbose_name="User-ID",
max_length=8,
null=True,