{% extends "admin/import_export/base.html" %} {% load i18n %} {% load admin_urls %} {% load import_export_tags %} {% load static %} {% block extrastyle %}{{ block.super }}{% endblock %} {% block breadcrumbs_last %} {% trans "Import" %} {% endblock %} {% block content %} {% if confirm_form %}
{% else %} {% endif %} {% if result %} {% if result.has_errors %}{{ error.row.values|join:", " }}
{% trans "Please correct these errors in your data where possible, then reupload it using the form above." %}
{% trans "Row" %} | {% trans "Errors" %} | {% for field in result.diff_headers %}{{ field }} | {% endfor %}
---|---|---|
{{ row.number }} |
{{ row.error_count }}
|
{% for field in row.values %}
{{ field }} | {% endfor %}
{% for field in result.diff_headers %} | {{ field }} | {% endfor %}
---|---|
{% if row.import_type == 'new' %} {% trans "New" %} {% elif row.import_type == 'skip' %} {% trans "Skipped" %} {% elif row.import_type == 'delete' %} {% trans "Delete" %} {% elif row.import_type == 'update' %} {% trans "Update" %} {% endif %} | {% for field in row.diff %}{{ field }} | {% endfor %}