coderedcorp / coderedcorp/coderedcms
Admin error loading import_from_csv template
- Dominant language
- Python
- Stars
- 765
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
#### 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 %}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.