{% load i18n %} {% load url from simple_history_compat %} {% load admin_urls %} {% 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' %} |
---|---|---|---|---|---|
{{ action.history_object }} | {% for column in history_list_display %}{{ action|getattribute:column }} {% endfor %} | {{ action.history_date }} | {{ action.get_history_type_display }} | {% if action.history_user %} {% url admin_user_view action.history_user_id as admin_user_url %} {% if admin_user_url %} {{ action.history_user }} {% else %} {{ action.history_user }} {% endif %} {% else %} {% trans "None" %} {% endif %} | {{ action.history_change_reason }} |