coderedcms icon indicating copy to clipboard operation
coderedcms copied to clipboard

Admin error loading import_from_csv template

Open heluca opened this issue 9 months ago • 1 comments

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 %}

heluca avatar Apr 16 '25 12:04 heluca

Also experiencing this issue.

Prill avatar Jun 10 '25 19:06 Prill