Add alert for stripped numeric references in import preview and refactor payload cleaning function

This commit is contained in:
Ross
2025-10-20 22:23:10 +01:00
parent a4f4cb9e96
commit 8dac99b6d3
2 changed files with 29 additions and 21 deletions
@@ -20,6 +20,11 @@
<strong>Note:</strong> The following unsupported fields were dropped: <em>{{ item.dropped_fields|join:", " }}</em>
</div>
{% endif %}
{% if item.stripped_fields %}
<div class="alert alert-info" role="alert">
<strong>Note:</strong> Numeric references were removed from fields: <em>{{ item.stripped_fields|join:", " }}</em>
</div>
{% endif %}
{% if item.payload %}
<p><strong>Title:</strong> {{ item.payload.title|default:'(No title)'|safe }}</p>
<p><strong>Stem:</strong> {{ item.payload.stem|default:''|safe }}</p>