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

{# Original template renders object-tools only when has_add_permission is True. #}
{# This hack allows sub templates to add to object-tools #}
{% block object-tools %}
<div class="object-tools-wrapper d-flex mb-1 mb-lg-0">
  {% block object-tools-items %}
    {% if has_add_permission %}
      {{ block.super }}
    {% endif %}
  {% endblock %}
</div>
{% endblock %}
