This commit is contained in:
baoliang 2020-09-18 18:26:57 +08:00
parent 89109ed6db
commit 0c6f2d31f6
1 changed files with 1 additions and 1 deletions

View File

@ -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)