{% extends "admin/change_form.html" %} {% load i18n admin_urls %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% trans "Rollback to version" %} {{ version.data.version }}

{% trans "Object" %} {% trans "Version" %} {% trans "Version ID" %} {% trans "User" %} {% trans "Date" %}
{{ opts.verbose_name }}: {{ instance }} {{ version.data.version }} {{ version.id }} {{ version.user }} {{ version.date }}

{% trans "Confirm Rollback" %}

{% blocktrans %} You are about to rollback this object to the version snapshot below. Please carefully review the proposed values and click the `Rollback` button to proceed with the rollback.{% endblocktrans %}

{% blocktrans %}Please note that performing undeletions for soft-deleted objects by restoring the `status` field of the object will NOT perform cascading undeletes to children of that object. {% endblocktrans %}

{% if errors %}

{% blocktrans %}Rollback was aborted because of these errors{% endblocktrans %}

{% for field, messages in errors.items %} {% for message in messages %} {% if field == "non_field_errors" %}

{{ message }}

{% else %}

{{ field }}: {{ message }}

{% endif %} {% endfor %} {% endfor %} {% endif %}
{% csrf_token %} {% for field, value in version.data_sorted %} {% if field != "created" and field != "updated" %} {% endif %} {% endfor %}
{% trans "Field" %} {% trans "Value" %}
{{ field }} {{ value }}
{% endblock %}