一般讨论
Django2.0入门教程:ORM增删改操作 创建的Models报错
ERRORS: blog.Article_tags: (fields.E336) The model is used as an intermediate model by 'blog.Article.tags', but it does not have a foreign key to 'Article' or 'Tags'.
有人遇到这样的错误吗?如何解决?
参与讨论 2
Article 和 Tags 缺少外键,两者使用外键关联起来即可!
谢谢回复,问题已经解决了。