{% load i18n admin_urls %} {% load url from simple_history_compat %} {% load getattribute from getattributes %}
| {% trans 'Object' %} | {% for column in history_list_display %}{% trans column %} | {% endfor %}{% trans 'Date/time' %} | {% trans 'Comment' %} | {% trans 'Changed by' %} | {% trans 'Change reason' %} | {% trans 'Changes' %} |
|---|---|---|---|---|---|---|
| {{ record.history_object }} | {% for column in history_list_display %}{{ record|getattribute:column }} | {% endfor %}{{ record.history_date }} | {{ record.get_history_type_display }} | {% if record.history_user %} {% url admin_user_view record.history_user_id as admin_user_url %} {% if admin_user_url %} {{ record.history_user }} {% else %} {{ record.history_user }} {% endif %} {% else %} {% trans "None" %} {% endif %} | {{ record.history_change_reason }} |
{% block history_delta_changes %}
{% if record.history_delta_changes %}
|
{% if pagination_required %} {% for i in page_range %} {% if i == page_obj.paginator.ELLIPSIS %} {{ page_obj.paginator.ELLIPSIS }} {% elif i == page_obj.number %} {{ i }} {% else %} {{ i }} {% endif %} {# page_obj.paginator.ELLIPSIS #} {% endfor %} {# page_range #} {% endif %} {# pagination_required #} {{ page_obj.paginator.count }}{% blocktranslate count counter=page_obj.paginator.count %}entry{% plural %}entries{% endblocktranslate %}
{# paginator #}