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 %}
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start in coderedcms/templates/wagtailimportexport/import_from_csv.html and inspect the reference to the removed shared template. Run the import-from-CSV admin page to reproduce the TemplateDoesNotExist error; done means the page loads successfully on Wagtail 5.1 or later without that missing template.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- web-dev
- issue の種類
- バグ
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100