Search⌘ K
AI Features

Rebrand change_list.html

Explore how to rebrand the Django Admin change_list.html page by adapting core template files including search forms, filters, and pagination. Understand the steps to copy and modify HTML files such as change_list_object_tools.html and filter.html, integrate search fields, and reposition filters within the interface. This lesson helps you enhance the admin’s user experience with a responsive and customized design.

We'll cover the following...

Rebranding change_list.html

If you click on a model the change_list.html page is displayed. You will learn how to rebrand it in this lesson. Starting offStarting off, you will need to adapt the HTML code of the change_list.html file located in sample_app/templates/admin/sample_app/.

Your focus will be on the top of the page and to modify the search and «Add question» options.

The «Add question» link is in the object-tools-item block .

{% block object-tools %}
<ul class="object-tools">
  {% block object-tools-items %}
  {% change_list_object_tools %}
  {% endblock %}
</ul>
{% endblock %}

Its value is derived from {% change_list_object_tools %} which ...