coderedcorp / coderedcorp/coderedcms
Admin error loading import_from_csv template
- Langage dominant
- Python
- Étoiles
- 765
- Forks
- 154
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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 %}
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez dans coderedcms/templates/wagtailimportexport/import_from_csv.html et inspectez la référence au template partagé supprimé. Exécutez la page d’administration d’importation depuis un CSV pour reproduire l’erreur TemplateDoesNotExist ; c’est terminé lorsque la page se charge correctement avec Wagtail 5.1 ou une version ultérieure sans ce template manquant.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- web-dev
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100