这个问题是在模型中新添加的,在原来已经有的表单中没有值。所以在新添加的值得括号中添加

  1 download = models.ForeignKey(Download, on_delete=models.CASCADE, null=True)


然后

  1 python manage.py makemigrations
  2 
  3 python manage.py migrate

相关文章:

  • 2022-12-23
  • 2021-10-21
  • 2021-03-31
  • 2021-09-11
  • 2022-01-20
  • 2021-08-18
  • 2022-12-23
  • 2021-09-12
猜你喜欢
  • 2021-07-14
  • 2022-12-23
  • 2021-08-21
  • 2021-09-05
  • 2021-08-10
  • 2021-08-10
  • 2021-07-12
相关资源
相似解决方案