Add missing on_delete
argument
This commit is contained in:
parent
bd04b00c6d
commit
9ea4b827f4
|
@ -2,4 +2,4 @@ from django.db import models
|
|||
|
||||
|
||||
class Profile(models.Model):
|
||||
user = models.OneToOneField('auth.User')
|
||||
user = models.OneToOneField('auth.User', on_delete=models.CASCADE)
|
||||
|
|
Loading…
Reference in a new issue