coderedcorp / coderedcorp/coderedcms
Admin error loading import_from_csv template
- Ngôn ngữ chính
- Python
- Star
- 765
- Fork
- 154
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
#### 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 %}
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu tại coderedcms/templates/wagtailimportexport/import_from_csv.html và kiểm tra tham chiếu đến template dùng chung đã bị xóa. Chạy trang quản trị nhập từ CSV để tái hiện lỗi TemplateDoesNotExist; được coi là hoàn thành khi trang tải thành công trên Wagtail 5.1 trở lên mà không có template bị thiếu đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- web-dev
- Loại issue
- Lỗi
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 45/100