{% extends "admin/base_site.html" %}
{% load render_table from django_tables2 %}

{% block extrastyle %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}django_tables2/themes/paleblue/css/screen.css" />
{% endblock extrastyle %}

<!-- OBJECT TOOLS -->
{% block object-tools %}
  <ul class="tools">
      {% block object-tools-items %}
      <li>
<a href="{% url admin:search %}?{{ request.META.QUERY_STRING }}">Modify
    Search</a>
      </li>
      <li>
<a href="{% url admin:search_xls %}?{{ request.META.QUERY_STRING }}">Download as Excel</a>
        </li>
      {% endblock object-tools-items %}
  </ul>
{% endblock object-tools %}

{% block content %}
<div class="container-flexible">
{% render_table table %}

</div>

{% endblock content %}

{% extends "admin/base_site.html" %}
{% load render_table from django_tables2 %}

{% block extrastyle %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}django_tables2/themes/paleblue/css/screen.css" />

{# fix grappelli weirdness #}
<style>
table thead th a {
    margin-right: 0px;
}
</style>
{% endblock extrastyle %}

<!-- OBJECT TOOLS -->
{% block object-tools %}
  <ul class="tools">
      {% block object-tools-items %}
      <li>
<a href="{% url admin:search %}?{{ request.META.QUERY_STRING }}">Modify
    Search</a>
      </li>
      <li>
<a href="{% url admin:search_xls %}?{{ request.META.QUERY_STRING }}">Download as Excel</a>
        </li>
      {% endblock object-tools-items %}
  </ul>
{% endblock object-tools %}

{% block content %}
<div class="container-flexible">
{% render_table table %}

</div>

{% endblock content %}

Make the admin query tool table look better
Make the admin query tool table look better
