{% extends "admin/change_list.html" %}
{% load i18n %}

{% block object-tools-items %}
  {{ block.super }}
  {% if request.user.is_superuser %}
    <li style="list-style: none">
      {% with purge_url='admin:'|add:cl.opts.app_label|add:'_'|add:cl.opts.model_name|add:'_purge' %}
        <a href="{% url purge_url %}" class="deletelink">
          {% translate "Purge" %} {% blocktrans with cl.opts.verbose_name_plural as name %}{{ name }}{% endblocktrans %}
        </a>
      {% endwith %}
    </li>
  {% endif %}
{% endblock %}
