Django在根據models生成數據庫表時報 __init__() missing 1 required positional argument: 'on_delete'...

 代碼: from django.db import models class Test(models.Model): name = models.CharField(max_length=20) class Contact(models.Model): name = models.CharField(max_length=200) age = models.Integ
相關文章
相關標籤/搜索