fix bug
This commit is contained in:
parent
89109ed6db
commit
0c6f2d31f6
|
@ -54,7 +54,7 @@ class Notice(models.Model):
|
|||
|
||||
class Task(models.Model):
|
||||
id = models.UUIDField('id', primary_key=True, default=uuid.uuid4)
|
||||
created_by = models.ForeignKey(User, on_delete=models.NULL)
|
||||
created_by = models.ForeignKey(User, on_delete=models.SET_NULL)
|
||||
groups = models.ManyToManyField(Group)
|
||||
content = models.TextField('内容', null=True, blank=True)
|
||||
added = models.DateTimeField(auto_now_add=True)
|
||||
|
|
Loading…
Reference in New Issue