I'm trying to add a custom button in change_list django admin page next to the add object in the top of the page.
{% extends "admin/change_list.html" %}
{% load i18n %}
{% block object-tools-items %}
{{ block.super }}
<li>
<button class="" href="...">Click Here!</button>
</li>
{% endblock %}
I followed a lot of tutorials but with no success.
I have 'APP_DIRS': True,
in my settings.py and my project is like:
project/
app/
templates/
change_list.html
custom_template.html
The custom_template.html
is an Action in change_list, and it works.
Am i missing something?
EDIT:
Already tried:
project/app/templates/admin/change_list.html project/app/templates/app/admin/change_list.html
Didn't work either.