{% load i18n %} {% load admin_urls %} {% load getattribute from getattributes %}
{% for column in history_list_display %} {% endfor %} {% for record in page_obj %} {% with has_history_delta_changes=record.history_delta_changes|length %} {% for column in history_list_display %} {% endfor %} {% if has_history_delta_changes %} {% endif %} {% endwith %} {% endfor %}
{% trans 'Date/time' %} {% trans 'Changed by' %} {% trans 'Object' %} {% trans column %} {% trans 'Comment' %} {% trans 'Change reason' %} {% trans 'Changes' %}
{{ record.history_date }}
{% url admin_user_view record.history_user_id as admin_user_url %} {% if admin_user_url %} {{ record.history_user }} {% else %} {{ record.history_user }} {% endif %} {{ record.history_object }} {{ record|getattribute:column }} {{ record.get_history_type_display }} {% if record.history_change_reason %} {{ record.history_change_reason }} {% else %} - {% endif %} {% block history_delta_changes %} {% if has_history_delta_changes %}
    {% for change in record.history_delta_changes %} {% include "unfold/helpers/label.html" with text=change.field %} {% endfor %}
{% else %} - {% endif %} {% endblock %}
{% if has_history_delta_changes %} expand_more {% endif %}
{% for change in record.history_delta_changes %} {% endfor %}
{% trans 'Field' %} {% trans 'Old value' %} {% trans 'New value' %}
{{ change.field }} {% if change.old %} {% if change.old == "None" %} None {% else %} {{ change.old }} {% endif %} {% else %} - {% endif %} {% if change.new %} {% if change.new == "None" %} None {% else %} {{ change.new }} {% endif %} {% else %} - {% endif %}