dhango_自定义多对多替中间表through报错_ForeignKey is invalid. First parameter to ForeignKey must be either
问题描述:
在model.py中创建多对多模型,自定义中间表through的时候,生成迁移报错
报错如下;
完整报错信息
(venv) F:\django_lear\mysite1>python manage.py makemigrations
Traceback (most recent call last):
File "F:\django_learn\venv\lib\...
原创
2019-11-22 14:44:04 ·
1766 阅读 ·
0 评论