【发布时间】:2025-12-06 16:50:01
【问题描述】:
我创建了以下模型:
一切正常,直到我决定添加这两个字段:
Metric_name_dv = models.CharField(_('Metric name dv'), max_length=200)
Defect_Area_Investigator_dv = models.CharField(_('Defect Area Investigator'), max_length=200)
添加这两个字段并运行 makemigrations 和 migrate 后,我不断收到此错误:
查看 sqlite3 时,我没有看到以下字段:Metric_name_dv & Defect_Area_Investigator_dv:
我可能会错过什么? 我试图清除所有过去的迁移,但没有奏效,所以我将其重置为正常。
这里是views.py:
【问题讨论】:
标签: python html django django-models