我正在尝试将我的 django 项目升级到 Django 2.0,并且我已经阅读了发行说明并阅读了几篇关于要更改的内容的博客文章,但到目前为止,没有任何问题可以解决我的问题,这与包有关pinax
:
文件“/Users/marlo/miniconda3/envs/project/lib/python3.6/site- 包/pinax/eventlog/models.py”,第 13 行,在 类日志(模型。模型): 文件“/Users/marlo/miniconda3/envs/project/lib/python3.6/site-packages/pinax/eventlog/models.py”,第 22 行,在日志中 content_type = models.ForeignKey(ContentType, null=True) 类型错误:__init__() 缺少 1 个必需的位置参数:'on_delete'
对此有任何修复吗?