{% extends "admin/change_form.html" %}{% load admin_urls i18n %} {% comment %} A simple test to show that overriding templates still works. {% endcomment %} {% block content %} {{ block.super }} {% if original %}

Demo code. Available slugs:

{% endif %} {% endblock %} {% block object-tools-items %} {% comment %} As the URL is translated too, make sure the admin points to the current one. Using `get_absolute_url` call so the object returns the URL in the currently activated language. {% endcomment %}
  • {% trans "History" %}
  • {% if not add and has_absolute_url %}
  • {% trans "View on site" %}
  • {% endif%} {% endblock %}