coderedcorp / coderedcorp/coderedcms
Admin error loading import_from_csv template
- 主要语言
- Python
- 星标
- 765
- 派生
- 154
- PR 合并指标
- 30 天内没有已合并 PR
描述
#### Describe the bug
Wagtail CRX Admin fails to load page template when clicking 'Import from CSV file'
#### Steps to reproduce
Steps to reproduce the behavior:
Wagtail CRX Admin fails to load template when clicking 'Import from CSV file'
Error:
TemplateDoesNotExist at /admin/codered/import-export/import_from_csv/
wagtailadmin/shared/field_as_li.html
#### Expected behavior
Import page should load
#### Additional context
The Wagtail team removed shared include `field_as_li.html` in release 5.1:
https://github.com/wagtail/wagtail/blob/0506449cbbe85e213a7aaad7092b9c5f36fef8d2/docs/releases/5.1.md?plain=1#L385
It needs to be replaced with "wagtailadmin/shared/field.html" wrapped within `li` tags.
Import from CSV still references it:
https://github.com/coderedcorp/coderedcms/blame/main/coderedcms/templates/wagtailimportexport/import_from_csv.html
{% for field in form %}
{% include "wagtailadmin/shared/field_as_li.html" %}
{% endfor %}
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 coderedcms/templates/wagtailimportexport/import_from_csv.html 开始,检查对已移除共享模板的引用。运行从 CSV 导入的管理页面以复现 TemplateDoesNotExist 错误;在 Wagtail 5.1 或更高版本上,页面能够在没有该缺失模板的情况下成功加载即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- web-dev
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100