{% load i18n admin_urls %} {% block object-tools-items %} {% if opts|title != "Django_Cash_Register.Producthistory" and opts|title != 'Django_Cash_Register.Actiontype' %}
  • {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %} {% translate "History" %}
  • {% endif %} {% if has_absolute_url %}
  • {% translate "View on site" %}
  • {% endif %} {% endblock %}