{% extends "admin/object_history.html" %} {% load i18n admin_urls static admin_list %} {% block extrastyle %} {{ block.super }} {% if cl.formset %} {% endif %} {% if cl.formset or action_form %} {% endif %} {{ media.css }} {% if not actions_on_top and not actions_on_bottom %} {% endif %} {% endblock %} {% block content %}
{% csrf_token %}
{{ action_form }}
{% for field, label in version_list_fields %} {% endfor %} {% for version in history %} {% for field, value in version.fields %} {% if field == "version_changes" %} {% elif field == "version_id" %} {% else %} {% endif %} {% endfor %} {% if version.comment %} {% endif %} {% endfor %}
 
{% for changed_field, diff in value.items %}
{{ changed_field }}: {{ diff.old|truncatechars:50 }}{{ diff.changed|truncatechars:50 }}
{% endfor %}
{{ value }}{{ value }}
{{ version.comment }}
{% block pagination %}{% pagination listing %}{% endblock %}
{% endblock %}