我刚刚设置了整个导入-导出程序,我只是不能让它从另一个模型导出一个字段,使用外键。models.pyfrom django.contrib.auth.models import User
from datetime importOferteImEx类中看到它--字段'oferta.cor.MeserieCor‘。我想从模型MeserieCor导出CORMeserii字段--但是我搞不清楚。是否
当我尝试运行python3 manage.py makemigrations时,它显示:您正试图在没有默认值的情况下向journey_template添加一个不可为空的字段'topic_id‘;我们不能这样做请选择修复方法: 1)立即提供一次性默认值(将在此列的所有现有行上设置为空值) 2)退出,然后让我在models.py中添加默认值选择一个选项: enter code here from django.db